Skip to content

Latest commit

 

History

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

File metadata and controls

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

PaddlePaddle Custom Device Implementation for Biren GPU

English | 简体中文

Please refer to the following steps to compile, install and verify the custom device implementation for Biren GPU.

Compile and Install

# Acquire Biren PaddlePaddle Docker Image

# Clone PaddleCustomDevice source code
git clone https://github.com/PaddlePaddle/PaddleCustomDevice

# Compile Source Code and Install
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

Verification

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

# ctest
cd build
ninja test