-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path22.rocblas.sh
50 lines (40 loc) · 1.17 KB
/
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
44
45
46
47
48
49
#!/bin/bash
set -e
echo "|====|"
echo "|SLOW|"
echo "|====|"
#bash $ROCM_GIT_DIR/rocBLAS/install.sh -d
mkdir -p $ROCM_BUILD_DIR/rocblas
cd $ROCM_BUILD_DIR/rocblas
pushd .
cd $ROCM_GIT_DIR/Tensile
git reset --hard
git apply $ROCM_PATCH_DIR/22.tensile-gfx1012-1.patch
cd $ROCM_BUILD_DIR/rocblas
START_TIME=`date +%s`
CXX=$ROCM_INSTALL_DIR/bin/hipcc cmake \
-DCMAKE_TOOLCHAIN_FILE=toolchain-linux.cmake \
-DAMDGPU_TARGETS=$AMDGPU_TARGETS \
-DROCM_PATH=$ROCM_INSTALL_DIR \
-DTensile_LOGIC=asm_full \
-DTensile_ARCHITECTURE=gfx1012 \
-DTensile_CODE_OBJECT_VERSION=V3 \
-DTensile_SEPARATE_ARCHITECTURES=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DTensile_TEST_LOCAL_PATH=$ROCM_GIT_DIR/Tensile \
-DTensile_LIBRARY_FORMAT=msgpack \
-DRUN_HEADER_TESTING=OFF \
-DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=ON \
-DCMAKE_INSTALL_PREFIX=rocblas-install \
-DCPACK_SET_DESTDIR=OFF \
-DCPACK_PACKAGING_INSTALL_PREFIX=$ROCM_INSTALL_DIR \
-DCPACK_GENERATOR=DEB \
-G Ninja \
$ROCM_GIT_DIR/rocBLAS
ninja
ninja package
sudo dpkg -i *.deb
END_TIME=`date +%s`
EXECUTING_TIME=`expr $END_TIME - $START_TIME`
echo "elapse : "$EXECUTING_TIME"s"
popd