Skip to content

Commit 282615b

Browse files
committed
fix(workflow): set HIP_PLATFORM to amd and update environment variables for Windows HIP setup
1 parent ea9375b commit 282615b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,17 @@ jobs:
237237
$HIP_PWSH = "$(Resolve-Path 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' | split-path | split-path)"
238238
"HIP_PATH=$($HIP_PWSH.Replace('\', '/'))" | Out-File -FilePath $env:GITHUB_ENV -Append
239239
"CMAKE_PREFIX_PATH=$($HIP_PWSH.Replace('\', '/'))" | Out-File -FilePath $env:GITHUB_ENV -Append
240+
"HIP_PLATFORM=amd" | Out-File -FilePath $env:GITHUB_ENV -Append
241+
# Ensure hip-config.cmake can find hipconfig
242+
"PATH=$env:PATH;$($HIP_PWSH.Replace('\', '/'))/bin" | Out-File -FilePath $env:GITHUB_ENV -Append
240243
shell: pwsh
241244

242245
- name: windows build sqlite-ai
243246
if: matrix.os == 'windows-latest'
244247
run: make extension ${{ matrix.make && matrix.make || ''}}
245248
shell: msys2 {0}
249+
env:
250+
HIP_PLATFORM: amd
246251

247252
- name: build sqlite-ai
248253
if: matrix.os != 'windows-latest'

0 commit comments

Comments
 (0)