Skip to content

Commit

Permalink
ROCm-4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhuisheng committed Aug 11, 2021
1 parent 994f7a7 commit 7759bdb
Show file tree
Hide file tree
Showing 41 changed files with 567 additions and 532 deletions.
6 changes: 3 additions & 3 deletions 12.roct-thunk-interface.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ cmake \
-DCMAKE_INSTALL_PREFIX=$ROCM_INSTALL_DIR \
-DCPACK_PACKAGING_INSTALL_PREFIX=$ROCM_INSTALL_DIR \
-DCPACK_GENERATOR=DEB \
-G "Unix Makefiles" \
-G "Ninja" \
$ROCM_GIT_DIR/ROCT-Thunk-Interface/
make -j
make package
ninja
ninja package
sudo dpkg -i *.deb

END_TIME=`date +%s`
Expand Down
4 changes: 2 additions & 2 deletions 36.rocm-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ pushd .

START_TIME=`date +%s`

cp -R ../../meta/rocm-utils_4.2.0.40200-21_amd64 .
cp -R ../../meta/rocm-utils_4.3.0.40300-52_amd64 .

dpkg -b rocm-utils_4.2.0.40200-21_amd64
dpkg -b rocm-utils_4.3.0.40300-52_amd64

sudo dpkg -i *.deb

Expand Down
4 changes: 2 additions & 2 deletions 44.rocm-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ pushd .

START_TIME=`date +%s`

cp -R ../../meta/rocm-dev_4.2.0.40200-21_amd64 .
cp -R ../../meta/rocm-dev_4.3.0.40300-52_amd64 .

dpkg -b rocm-dev_4.2.0.40200-21_amd64
dpkg -b rocm-dev_4.3.0.40300-52_amd64

sudo dpkg -i *.deb

Expand Down
4 changes: 3 additions & 1 deletion 54.rocalution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ START_TIME=`date +%s`
CXX=$ROCM_INSTALL_DIR/hip/bin/hipcc cmake \
-DAMDGPU_TARGETS=$AMDGPU_TARGETS \
-DCMAKE_BUILD_TYPE=Release \
-DSUPPORT_HIP=ON \
-DROCM_PATH=$ROCM_INSTALL_DIR \
-DCPACK_SET_DESTDIR=OFF \
-DCPACK_PACKAGING_INSTALL_PREFIX=$ROCM_INSTALL_DIR \
-DCMAKE_INSTALL_PREFIX=hipsparse-install \
-DCMAKE_INSTALL_PREFIX=rocalution-install \
-G Ninja \
$ROCM_GIT_DIR/rocALUTION
ninja
Expand Down
4 changes: 2 additions & 2 deletions 56.rocm-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ pushd .

START_TIME=`date +%s`

cp -R ../../meta/rocm-libs_4.2.0.40200-21_amd64 .
cp -R ../../meta/rocm-libs_4.3.0.40300-52_amd64 .

dpkg -b rocm-libs_4.2.0.40200-21_amd64
dpkg -b rocm-libs_4.3.0.40300-52_amd64

sudo dpkg -i *.deb

Expand Down
8 changes: 4 additions & 4 deletions 63.rock-dkms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

sudo apt -y install autoconf

TARGET_DIR=$ROCM_BUILD_DIR/rock-dkms/usr/src/amdgpu-4.2-21
TARGET_DIR=$ROCM_BUILD_DIR/rock-dkms/usr/src/amdgpu-4.3-52

mkdir -p $TARGET_DIR

Expand Down Expand Up @@ -51,8 +51,8 @@ bash autogen.sh
cd ../..

cd ../../..
cp ../../meta/rock-dkms_4.2-21_all . -R
cp -R usr rock-dkms_4.2-21_all/
cp ../../meta/rock-dkms_4.3-52_all . -R
cp -R usr rock-dkms_4.3-52_all/

dpkg -b rock-dkms_4.2-21_all
dpkg -b rock-dkms_4.3-52_all

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# rocm-build 4.2
# rocm-build 4.3

[中文版](README_zh_CN.md)

Expand Down Expand Up @@ -36,7 +36,7 @@ sudo apt install -y repo
mkdir -p ~/ROCm/
cd ~/ROCm/
repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-4.2.x
repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-4.3.x
repo sync
```

Expand Down
4 changes: 2 additions & 2 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# rocm-build 4.2
# rocm-build 4.3

[English Version](README.md)

Expand Down Expand Up @@ -36,7 +36,7 @@ sudo apt install -y repo
mkdir -p ~/ROCm/
cd ~/ROCm/
repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-4.2.x
repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-4.3.x
repo sync
```

Expand Down
44 changes: 11 additions & 33 deletions check/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,22 @@ Execute `sh check.sh`, will display version information of components.
On gfx803, There is no `hipErrorNoBinaryForGpu` error, when just display version information.

```
[HIP] 402
[rocBLAS] 2.38.0.
[rocFFT] 1.0.11.
[HIP] 40321300
[rocBLAS] 2.39.0.8328dcce-dirty
[rocFFT] 1.0.12.b93c40c
[rocPRIM] 201009
[rocRAND] 201009
[rocSPARSE] 101905
[rocSPARSE] 102002
[rccl] 2804
[MIOpen] 2 11 0
[rocSOVLER] 3.12.0.
[rocThrust] 101000
[rocALUTION] 11105
[MIOpen] 2 12 0
[rocSOVLER] 3.13.0.313bfc2
[rocThrust] 101100
[rocALUTION] 11201
[hipCUB] 201009
[hipBLAS] 0 44 0
[hipSPARSE] 101006
[hipBLAS] 0 46 0
[hipSPARSE] 101007
[hipRAND] 201009
[hipFFT] 100
[hipFFT] 10012
```

Execute `sh run-rocrand.sh` will report `hipErrorNoBinaryForGpu`.

```
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"
Aborted (core dumped)
```

Execute `sh run-miopen.sh` will report `hipErrorNoBinaryForGpu`.

```
MIOPEN_VERSION_MAJOR:2
MIOPEN_VERSION_MINOR:11
MIOPEN_VERSION_PATCH:0
ws_size = 576
find conv algo
warning: xnack 'Off' was requested for a processor that does not support it!
warning: xnack 'Off' was requested for a processor that does not support it!
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"
Aborted (core dumped)
```
44 changes: 11 additions & 33 deletions check/README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,22 @@
在gfx803显卡下,只打印版本信息,不会报错`hipErrorNoBinaryForGpu`了。

```
[HIP] 402
[rocBLAS] 2.38.0.
[rocFFT] 1.0.11.
[HIP] 40321300
[rocBLAS] 2.39.0.8328dcce-dirty
[rocFFT] 1.0.12.b93c40c
[rocPRIM] 201009
[rocRAND] 201009
[rocSPARSE] 101905
[rocSPARSE] 102002
[rccl] 2804
[MIOpen] 2 11 0
[rocSOVLER] 3.12.0.
[rocThrust] 101000
[rocALUTION] 11105
[MIOpen] 2 12 0
[rocSOVLER] 3.13.0.313bfc2
[rocThrust] 101100
[rocALUTION] 11201
[hipCUB] 201009
[hipBLAS] 0 44 0
[hipSPARSE] 101006
[hipBLAS] 0 46 0
[hipSPARSE] 101007
[hipRAND] 201009
[hipFFT] 100
[hipFFT] 10012
```

执行`sh run-rocrand.sh`会报错`hipErrorNoBinaryForGpu`

```
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"
Aborted (core dumped)
```

执行`sh run-miopen.sh`会报错`hipErrorNoBinaryForGpu`

```
MIOPEN_VERSION_MAJOR:2
MIOPEN_VERSION_MINOR:11
MIOPEN_VERSION_PATCH:0
ws_size = 576
find conv algo
warning: xnack 'Off' was requested for a processor that does not support it!
warning: xnack 'Off' was requested for a processor that does not support it!
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"
Aborted (core dumped)
```
2 changes: 1 addition & 1 deletion env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export ROCM_INSTALL_DIR=/opt/rocm
export ROCM_GIT_DIR=/home/work/ROCm
export ROCM_BUILD_DIR=/home/work/rocm-build/build
export ROCM_PATCH_DIR=/home/work/rocm-build/patch
export AMDGPU_TARGETS="gfx803;gfx900;gfx906"
export AMDGPU_TARGETS="gfx803"
export CMAKE_DIR=/home/work/local/cmake-3.16.8-Linux-x86_64
export PATH=$ROCM_INSTALL_DIR/bin:$ROCM_INSTALL_DIR/llvm/bin:$ROCM_INSTALL_DIR/hip/bin:$CMAKE_DIR/bin:$PATH

5 changes: 0 additions & 5 deletions gfx803/22.rocblas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ mkdir -p $ROCM_BUILD_DIR/rocblas
cd $ROCM_BUILD_DIR/rocblas
pushd .

cd $ROCM_GIT_DIR/rocBLAS
git reset --hard
git apply $ROCM_PATCH_DIR/22.rocblas-ninja-1.patch
cd $ROCM_BUILD_DIR/rocblas

cd $ROCM_GIT_DIR/Tensile
git reset --hard
git apply $ROCM_PATCH_DIR/22.tensile-gfx803-1.patch
Expand Down
35 changes: 0 additions & 35 deletions gfx803/34.miopen.sh

This file was deleted.

Loading

0 comments on commit 7759bdb

Please sign in to comment.