Replies: 13 comments 41 replies
-
@johnnynunez @Sabrewarrior |
Beta Was this translation helpful? Give feedback.
-
https://drive.google.com/file/d/1GV4MaYiKaUdZmGY3Hgn8r-eBwAJdxDNB/view?usp=sharing |
Beta Was this translation helpful? Give feedback.
-
I have a question.
Is this "clang.exe" from ROCm/bin or not?
|
Beta Was this translation helpful? Give feedback.
-
Any updates with the new version? |
Beta Was this translation helpful? Give feedback.
-
I got |
Beta Was this translation helpful? Give feedback.
-
New HIP SDK 6.2.0 is on windows: https://www.amd.com/en/developer/resources/rocm-hub/eula/licenses.html?filename=AMD-Software-PRO-Edition-24.Q4-Win10-Win11-For-HIP.exe @scarsty |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@scarsty Can you compile it? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The dll for ROCM 6.2 is here: |
Beta Was this translation helpful? Give feedback.
-
@junliume @apwojcik Do you have more details/instructions to build it? |
Beta Was this translation helpful? Give feedback.
-
Now it is not hard to build it on Windows. You can use vcpkg to install the dependencies: .\vcpkg install boost-filesystem:x64-windows-static boost-container:x64-windows-static boost-any:x64-windows-static boost-range:x64-windows-static boost-date-time:x64-windows-static boost-interprocess:x64-windows-static boost-hof:x64-windows-static bzip2:x64-windows-static sqlite3:x64-windows-static nlohmann-json:x64-windows-static frugally-deep:x64-windows-static Of course you have to download ninja and bzip2 and put them in your PATH. Modify CMakeLists.txt Change find_package(ROCM 0.7.3 REQUIRED PATHS /opt/rocm) to find_package(ROCM REQUIRED PATHS "C:/Program Files/AMD/ROCm/6.2") Use VS Native x64 command line, CMake command is like this: cmake .. -DMIOPEN_BACKEND=HIP -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded" -DCMAKE_PREFIX_PATH="c:\project\microsoft\vcpkg\installed\x64-windows-static" -G "Ninja" -DCMAKE_MAKE_PROGRAM="ninja.exe" -DHALF_INCLUDE_DIR="c:/project/microsoft/vcpkg/installed/x64-windows-static/include" -DCMAKE_C_COMPILER="C:/Program Files/AMD/ROCm/6.2/bin/clang.exe" -DCMAKE_CXX_COMPILER="C:/Program Files/AMD/ROCm/6.2/bin/clang.exe" -DHIP_PLATFORM="amd" -DBoost_DEBUG=ON -DBoost_INCLUDE_DIR="c:/project/microsoft/vcpkg/installed/x64-windows-static/include" -DMIOPEN_SQLITE3_USE_SYSTEM=On -DBUILD_TESTING=Off -DMIOPEN_ENABLE_AI_KERNEL_TUNING=On -DMIOPEN_ENABLE_AI_IMMED_MODE_FALLBACK=On -DMIOPEN_USE_COMPOSABLEKERNEL=Off -DMIOPEN_USE_MLIR=Off Some files are lost, they are here (-_-!!!!): Use command "ninja" to compile it, maybe you will fail when building test, but MIOpen.dll can be got. |
Beta Was this translation helpful? Give feedback.
-
I test the performances of miopen on Windows and Linux, surprisingly that on Linux is worse. In second, smaller means better.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Please see here:
#2703 (comment)
Install VS 2022, ninja, cmake, rocm, and so on.
Install vcpkg, and use it to install bz2, sqlite3, nlohmann_json, boost.
Sometimes CMAKE_PREFIX_PATH on Windows only recognize the first path, so copy all rocm files to vcpkg's lib path (ex: d:/project/microsoft/vcpkg/installed/x64-windows/).
Copy bzcat.exe and bzip2.dll to some bin PATH.
Open ./CMakeFiles.txt, at line 70, remove
0.7.3 REQUIRED
.Create unistd.h yourself.
Download half.hpp from https://github.com/ROCm/half/blob/master/web/half.hpp, copy it to include PATH.
Copy boost_filesystem-vc140-mt.lib to libboost_filesystem-vc71-mt.lib (it is confused to how cmake guess the file name).
Something about amd_comgr (head and cmake files) are lost, copy them from somewhere. Linux version may be useful.
Use x64 native tools command prompt of VS 2022 to enter cmd, switch to the path of MIOpen.
Some options have been closed, I do not make sure they are the reason to slow speed or not. The dependencies are harder to build.
Then you can get miopen.dll, but it seems has some bugs. Maybe we have to wait for rocm 6 for windows.
miopenFindConvolutionForwardAlgorithm will get:
Beta Was this translation helpful? Give feedback.
All reactions