-
Notifications
You must be signed in to change notification settings - Fork 34
/
22.rocblas.sh
44 lines (34 loc) · 962 Bytes
/
22.rocblas.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
41
42
43
#!/bin/bash
set -e
echo "|====|"
echo "|SLOW|"
echo "|====|"
mkdir -p $ROCM_BUILD_DIR/rocblas
cd $ROCM_BUILD_DIR/rocblas
pushd .
START_TIME=`date +%s`
cd $ROCM_GIT_DIR/rocBLAS
bash $ROCM_GIT_DIR/rocBLAS/install.sh -d
CXX=$ROCM_INSTALL_DIR/bin/hipcc cmake \
-DAMDGPU_TARGETS=$AMDGPU_TARGETS \
-DROCM_PATH=$ROCM_INSTALL_DIR \
-DTensile_LOGIC=asm_full \
-DTensile_ARCHITECTURE=all \
-DTensile_CODE_OBJECT_VERSION=V3 \
-DCMAKE_BUILD_TYPE=Release \
-DTensile_LIBRARY_FORMAT=yaml \
-DRUN_HEADER_TESTING=OFF \
-DTensile_COMPILER=hipcc \
-DCPACK_SET_DESTDIR=OFF \
-DCMAKE_INSTALL_PREFIX=rocblas-install \
-DCPACK_PACKAGING_INSTALL_PREFIX=$ROCM_INSTALL_DIR \
-DCPACK_GENERATOR=DEB \
-G "Unix Makefiles" \
$ROCM_GIT_DIR/rocBLAS
cmake --build .
cmake --build . --target package
sudo dpkg -i *.deb
END_TIME=`date +%s`
EXECUTING_TIME=`expr $END_TIME - $START_TIME`
echo "elapse : "$EXECUTING_TIME"s"
popd