|
33 | 33 | ROCM_VERSION="${ROCM_VERSION}.1" |
34 | 34 | fi |
35 | 35 |
|
| 36 | + # Default url values |
| 37 | + rocm_baseurl="http://repo.radeon.com/rocm/apt/${ROCM_VERSION}" |
| 38 | + amdgpu_baseurl="https://repo.radeon.com/amdgpu/${ROCM_VERSION}/ubuntu" |
| 39 | + |
| 40 | + # Special case for ROCM_VERSION == 7.0 |
| 41 | + if [[ $(ver "$ROCM_VERSION") -eq $(ver 7.0) ]]; then |
| 42 | + rocm_baseurl="https://repo.radeon.com/rocm/apt/7.0_alpha2" |
| 43 | + amdgpu_baseurl="https://repo.radeon.com/amdgpu/30.10_alpha2/ubuntu" |
| 44 | + fi |
| 45 | + |
36 | 46 | # Add amdgpu repository |
37 | 47 | UBUNTU_VERSION_NAME=`cat /etc/os-release | grep UBUNTU_CODENAME | awk -F= '{print $2}'` |
38 | | - echo "deb [arch=amd64] https://repo.radeon.com/amdgpu/${ROCM_VERSION}/ubuntu ${UBUNTU_VERSION_NAME} main" > /etc/apt/sources.list.d/amdgpu.list |
| 48 | + echo "deb [arch=amd64] ${amdgpu_baseurl} ${UBUNTU_VERSION_NAME} main" > /etc/apt/sources.list.d/amdgpu.list |
39 | 49 |
|
40 | 50 | # Add rocm repository |
41 | 51 | wget -qO - http://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - |
42 | | - local rocm_baseurl="http://repo.radeon.com/rocm/apt/${ROCM_VERSION}" |
43 | 52 | echo "deb [arch=amd64] ${rocm_baseurl} ${UBUNTU_VERSION_NAME} main" > /etc/apt/sources.list.d/rocm.list |
44 | 53 | apt-get update --allow-insecure-repositories |
45 | 54 |
|
|
73 | 82 | done |
74 | 83 |
|
75 | 84 | # ROCm 6.3 had a regression where initializing static code objects had significant overhead |
| 85 | + # CI no longer builds for ROCm 6.3, but |
76 | 86 | # ROCm 6.4 did not yet fix the regression, also HIP branch names are different |
77 | | - if [[ $(ver $ROCM_VERSION) -ge $(ver 6.3) ]] && [[ $(ver $ROCM_VERSION) -lt $(ver 7.0) ]]; then |
| 87 | + if [[ $(ver $ROCM_VERSION) -ge $(ver 6.4) ]] && [[ $(ver $ROCM_VERSION) -lt $(ver 7.0) ]]; then |
78 | 88 | if [[ $(ver $ROCM_VERSION) -eq $(ver 6.4.1) ]]; then |
79 | 89 | HIP_BRANCH=release/rocm-rel-6.4 |
80 | | - VER_STR=6.4 |
81 | | - VER_PATCH=.1 |
| 90 | + CLR_HASH=ca18eb3f77fa09292fcda62bc60c3e565d752ada # branch release/rocm-rel-6.4.1-statco-hotfix |
82 | 91 | elif [[ $(ver $ROCM_VERSION) -eq $(ver 6.4) ]]; then |
83 | 92 | HIP_BRANCH=release/rocm-rel-6.4 |
84 | | - VER_STR=6.4 |
85 | | - elif [[ $(ver $ROCM_VERSION) -eq $(ver 6.3) ]]; then |
86 | | - HIP_BRANCH=rocm-6.3.x |
87 | | - VER_STR=6.3 |
| 93 | + CLR_HASH=600f5b0d2baed94d5121e2174a9de0851b040b0c # branch release/rocm-rel-6.4-statco-hotfix |
88 | 94 | fi |
89 | 95 | # clr build needs CppHeaderParser but can only find it using conda's python |
90 | 96 | python -m pip install CppHeaderParser |
91 | 97 | git clone https://github.com/ROCm/HIP -b $HIP_BRANCH |
92 | 98 | HIP_COMMON_DIR=$(readlink -f HIP) |
93 | | - git clone https://github.com/jeffdaily/clr -b release/rocm-rel-${VER_STR}${VER_PATCH}-statco-hotfix |
| 99 | + git clone https://github.com/jeffdaily/clr |
| 100 | + pushd clr |
| 101 | + git checkout $CLR_HASH |
| 102 | + popd |
94 | 103 | mkdir -p clr/build |
95 | 104 | pushd clr/build |
96 | 105 | # Need to point CMake to the correct python installation to find CppHeaderParser |
97 | 106 | cmake .. -DPython3_EXECUTABLE=/opt/conda/envs/py_${ANACONDA_PYTHON_VERSION}/bin/python3 -DCLR_BUILD_HIP=ON -DHIP_COMMON_DIR=$HIP_COMMON_DIR |
98 | 107 | make -j |
99 | | - cp hipamd/lib/libamdhip64.so.${VER_STR}.* /opt/rocm/lib/libamdhip64.so.${VER_STR}.* |
| 108 | + cp hipamd/lib/libamdhip64.so.6.4.* /opt/rocm/lib/libamdhip64.so.6.4.* |
100 | 109 | popd |
101 | 110 | rm -rf HIP clr |
102 | 111 | fi |
|
0 commit comments