-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue]: How to build rocWMMA on Windows ? #464
Comments
Hi @Jay19751103. Internal ticket has been created to assist with your issue. Thanks! |
Hi |
I would like to see if I can compile rocwmma for gfx1100 as well on Windows. |
Do you mean Rocm 5.7? CMake Error at CMakeLists.txt:102 (find_package): |
I disabled OpenMP on windows, This may need to wait rocWmma new release. Now my based version is Change following Top level configsif( CMAKE_PROJECT_NAME STREQUAL "rocwmma" )
find_package( hip REQUIRED ) -find_path(ROCM_SMI_ROOT "include/rocm_smi/rocm_smi.h"
-find_library(ROCM_SMI_LIBRARY rocm_smi64
add_library(rocwmma INTERFACE) rocm_install_targets( list(APPEND TEST_SOURCE ${ARGN})
Build command Then install to hipsdk directory. and use following branch llama branch to build GGML FA features with rocWMMA |
it would be nice if you can post your cmakelist.txt. it's kind of hard to read. |
@huanrwan-amd windows... |
Hi @Jay19751103 and @sorasoras, rocWMMA is not supported or tested on Windows. @johnnynunez I'm not sure what the meaning of your comments is, can you clarify? |
Hi @jamesxu2 I download the source and build it with disabling testing and OPENMP then install to hipsdk folder. |
@Jay19751103, even if you can build it, rocWMMA is not supported or tested on Windows. This means there can be bugs or unexpected behaviour related to the different OS. Because Windows is not in our testing matrix, it may partially "work" in some usecases but suddenly break after an update, or fail in unexpected ways. |
Problem Description
Adding New gfx model gfx1151 to Linux , it can build on Linux also I can build the llama cpp with rocWMMA patch
https://github.com/ggerganov/llama.cpp/pull/7011/commits to test FA
Testing llama.cpp with rocWMMA lib build
amd@halo:~/llama.cpp_wmma/build/bin$ ./llama-bench -m ~/ROCm/6.3/rocBLAS/Meta-Llama-3-8B.Q4_K_M.gguf -p 512 -fa 1
ggml_cuda_init: GGML_CUDA_FORCE_MMQ: no
ggml_cuda_init: CUDA_USE_TENSOR_CORES: yes
ggml_cuda_init: found 1 ROCm devices:
Device 0: AMD Radeon Graphics, compute capability 11.5, VMM: no
Without rocWMMA
amd@halo:~/llama.cpp/build/bin$ ./llama-bench -m ~/ROCm/6.3/rocBLAS/Meta-Llama-3-8B.Q4_K_M.gguf -p 512
ggml_cuda_init: GGML_CUDA_FORCE_MMQ: no
ggml_cuda_init: GGML_CUDA_FORCE_CUBLAS: yes
ggml_cuda_init: found 1 ROCm devices:
Device 0: AMD Radeon Graphics, compute capability 11.5, VMM: no
I'd want to port into windows. But On Windows I get the cmake error as following
G:\rocWMMA>cmake -Bbuild2 -DAMDGPU_TARGETS="gfx1151" -G Ninja
-- The CXX compiler identification is Clang 19.0.0 with GNU-like command-line
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/opt/rocm/6.1/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_HAS_TARGET_ID_gfx908_xnack_off
-- Performing Test COMPILER_HAS_TARGET_ID_gfx908_xnack_off - Failed
-- Performing Test COMPILER_HAS_TARGET_ID_gfx90a_xnack_off
-- Performing Test COMPILER_HAS_TARGET_ID_gfx90a_xnack_off - Failed
-- Performing Test COMPILER_HAS_TARGET_ID_gfx90a_xnack_on
-- Performing Test COMPILER_HAS_TARGET_ID_gfx90a_xnack_on - Failed
-- Performing Test COMPILER_HAS_TARGET_ID_gfx940
-- Performing Test COMPILER_HAS_TARGET_ID_gfx940 - Failed
-- Performing Test COMPILER_HAS_TARGET_ID_gfx941
-- Performing Test COMPILER_HAS_TARGET_ID_gfx941 - Failed
-- Performing Test COMPILER_HAS_TARGET_ID_gfx942
-- Performing Test COMPILER_HAS_TARGET_ID_gfx942 - Failed
-- Performing Test COMPILER_HAS_TARGET_ID_gfx1100
-- Performing Test COMPILER_HAS_TARGET_ID_gfx1100 - Failed
-- Performing Test COMPILER_HAS_TARGET_ID_gfx1101
-- Performing Test COMPILER_HAS_TARGET_ID_gfx1101 - Failed
-- Performing Test COMPILER_HAS_TARGET_ID_gfx1102
-- Performing Test COMPILER_HAS_TARGET_ID_gfx1102 - Failed
-- Performing Test COMPILER_HAS_TARGET_ID_gfx1151
-- Performing Test COMPILER_HAS_TARGET_ID_gfx1151 - Failed
-- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS
-- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS - Failed
CMake Deprecation Warning at C:/opt/rocm/6.1/lib/cmake/hiprtc/hiprtc-config.cmake:21 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
CMakeLists.txt:103 (find_package)
CMake Error at C:/Program Files/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.30/Modules/FindOpenMP.cmake:600 (find_package_handle_standard_args)
CMakeLists.txt:104 (find_package)
-- Configuring incomplete, errors occurred!
Operating System
10.0.22631
CPU
AMD 7700X
GPU
GFX1151
ROCm Version
ROCm 6.2.3
ROCm Component
rocWMMA
Steps to Reproduce
0001-Port-gfx1151-to-rocWMMA.patch
Patching to add gfx1151 and use
cmake -Bbuild2 -DAMDGPU_TARGETS="gfx1151" -G Ninja get error
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
PS C:\Users\users> (Get-WmiObject Win32_OperatingSystem).Version
10.0.22631
PS C:\Users\users> (Get-WmiObject win32_Processor).Name
AMD Ryzen 7 7700X 8-Core Processor
PS C:\Users\users> (Get-WmiObject win32_VideoController).Name
AMD Radeon RX 7900 XTX
AMD Radeon(TM) Graphics
The text was updated successfully, but these errors were encountered: