Skip to content

Latest commit

 

History

History
executable file
·
33 lines (24 loc) · 712 Bytes

README_cn.md

File metadata and controls

executable file
·
33 lines (24 loc) · 712 Bytes

飞桨自定义接入硬件后端(壁仞GPU)

简体中文 | English

请参考以下步骤进行编译安装与验证

编译安装

# 获取壁仞PaddlePaddle Docker镜像

# 克隆PaddleCustomDevice源码
git clone https://github.com/PaddlePaddle/PaddleCustomDevice

# 编译安装
cd backends/biren_gpu
mkdir -p build
pushd build
cmake -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug ..
ninja
pip3 install --no-index --find-links=offline dist/paddle_custom_supa-*.whl --force-reinstall

验证

# -DWITH_TESTING=ON
cmake -G Ninja -DWITH_TESTING=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug ..

# ctest
cd build
ninja test