forked from xuhuisheng/rocm-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path25.rocsparse.sh
42 lines (32 loc) · 989 Bytes
/
25.rocsparse.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
set -e
echo "|====|"
echo "|SLOW|"
echo "|====|"
mkdir -p $ROCM_BUILD_DIR/rocsparse
cd $ROCM_BUILD_DIR/rocsparse
cd $ROCM_GIT_DIR/rocSPARSE
git reset --hard
git apply $ROCM_PATCH_DIR/25.rocsparse-gfx10-1.patch
# git apply $ROCM_PATCH_DIR/25.rocsparse-amdgpu-1.patch
cd $ROCM_BUILD_DIR/rocsparse
START_TIME=`date +%s`
# export CPACK_DEBIAN_PACKAGE_RELEASE=f9aa90e
# export CPACK_RPM_PACKAGE_RELEASE=f9aa90e
CXX=$ROCM_INSTALL_DIR/bin/hipcc cmake \
-DAMDGPU_TARGETS=$AMDGPU_TARGETS \
-DHIP_CLANG_INCLUDE_PATH=$ROCM_INSTALL_DIR/llvm/include \
-DBUILD_CLIENTS_SAMPLES=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCPACK_SET_DESTDIR=OFF \
-DCMAKE_INSTALL_PREFIX=rocsparse-install \
-DCPACK_PACKAGING_INSTALL_PREFIX=$ROCM_INSTALL_DIR \
-DROCM_PATH=$ROCM_INSTALL_DIR \
-G Ninja \
$ROCM_GIT_DIR/rocSPARSE
ninja
ninja package
$RUN_DPKG -i *.deb
END_TIME=`date +%s`
EXECUTING_TIME=`expr $END_TIME - $START_TIME`
echo "elapse : "$EXECUTING_TIME"s"