compile.sh 584 Bytes
Newer Older
huchen's avatar
huchen committed
1
source /opt/dtk/env.sh
2
3
4
5
6
export CPLUS_INCLUDE_PATH=${ROCM_PATH}/include:${ROCM_PATH}:/opencl/include
export CPLUS_INCLUDE_PATH=${ROCM_PATH}/hiprand/include/:${ROCM_PATH}/rocrand/include:$CPLUS_INCLUDE_PATH
export LD_LIBRARY_PATH=${ROCM_PATH}/hipblas/lib/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${ROCM_PATH}/llvm/lib:$LD_LIBRARY_PATH

huchen's avatar
huchen committed
7
8
9
NAME="colossalai-0.0.2-cp37-cp37m-linux_x86_64"
rm dist/${NAME}.whl

10
11
MAX_JOBS=32 python3 setup.py -v  bdist_wheel

huchen's avatar
huchen committed
12
pip3 install dist/${NAME}.whl  -i http://mirrors.aliyun.com/pypi/simple/  --trusted-host mirrors.aliyun.com --no-deps --force-reinstall