Skip to content

Commit a4a6a71

Browse files
committed
adding exports for rocm path and hip path.
1 parent 1c5061f commit a4a6a71

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ jobs:
10031003
Compress-Archive -Path "build/bin/${{ matrix.build }}" -DestinationPath "whisper-bin-${{ matrix.arch }}.zip"
10041004
10051005
- name: Upload binaries
1006-
if: matrix.sdl2 == 'ON' && ${{ needs.determine-tag.outputs.should_release }}
1006+
if: ${{ matrix.sdl2 == 'ON' && needs.determine-tag.outputs.should_release }}
10071007
uses: actions/upload-artifact@v6
10081008
with:
10091009
name: whisper-bin-${{ matrix.arch }}.zip
@@ -1089,7 +1089,7 @@ jobs:
10891089
Compress-Archive -Path "build/bin/${{ matrix.build }}" -DestinationPath "whisper-blas-bin-${{ matrix.arch }}.zip"
10901090
10911091
- name: Upload binaries
1092-
if: matrix.blas == 'ON' && matrix.sdl2 == 'ON' && ${{ needs.determine-tag.outputs.should_release }}
1092+
if: ${{ matrix.blas == 'ON' && matrix.sdl2 == 'ON' && needs.determine-tag.outputs.should_release }}
10931093
uses: actions/upload-artifact@v6
10941094
with:
10951095
name: whisper-blas-bin-${{ matrix.arch }}.zip

ci/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ if [ ! -z ${GG_BUILD_ROCM} ]; then
7979
fi
8080

8181
CMAKE_EXTRA="${CMAKE_EXTRA} -DAMDGPU_TARGETS=${GG_BUILD_AMDGPU_TARGETS}"
82+
83+
# Set HIP environment if not already set
84+
export HIP_PLATFORM=${HIP_PLATFORM:-amd}
85+
export ROCM_PATH=${ROCM_PATH:-/opt/rocm}
86+
export HIP_PATH=${HIP_PATH:-/opt/rocm}
87+
CMAKE_EXTRA="${CMAKE_EXTRA} -DCMAKE_PREFIX_PATH=${ROCM_PATH} -DCMAKE_HIP_COMPILER=${ROCM_PATH}/lib/llvm/bin/clang++"
8288
fi
8389

8490
if [ ! -z ${GG_BUILD_SYCL} ]; then

0 commit comments

Comments
 (0)