okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
ba8745e13
main
1@echo off 2rem umaprobe.exe for gfx1151 (HIP, ROCm 10.2 wheels + MSVC headers), into %OUT% (default C:\wdsv41s\umaprobe.exe). ROCM_VENV as in build_hip_win.bat. 3set local 4ifnot defined ROCM_VENV set "ROCM_VENV=%~dp0..\..\..\.rocm-win" 5if not defined OUT set "OUT=C:\wdsv41s\umaprobe.exe" 6for / f "delims=" %%R in ('"%ROCM_VENV %\Scripts \rocm -sdk .exe "path --root ')do set "ROCM=%%R" 7for / f "delims=" %%V in ('"%ProgramFiles (x86 )%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath') do set "VS=%%V" 8call "%VS% \VC \Auxiliary \Build \vcvars64 .bat " >nul ||exit / b 1 9set "PATH=%ROCM%\bin;%ROCM%\lib\llvm\bin;%PATH%" 10"%ROCM% \lib \llvm \bin \clang ++.exe " -x hip -O2 --offload -arch =gfx1151 --rocm -path="%ROCM %" --rocm -device -lib -path="%ROCM %\lib \llvm \amdgcn \bitcode " -I "%ROCM %\include " "%~dp0umaprobe .cpp " -o "%OUT %" -L "%ROCM %\lib " -lamdhip64 -ldxgi -lversion -lpsapi -Wno -unused -command -line -argument 11echoBUILD -EXIT %errorlevel % 12endlocal