[GH-ISSUE #1150] [Bug] ROCM部署 #801

Open
opened 2026-10-29 14:44:38 +00:00 by bsakaguchi · 7 comments
Owner

Originally created by @roundcaky on GitHub (Apr 16, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1150

Originally assigned to: @Azure-Tang on GitHub.

检查清单

  • 1. 我已经搜索过相关问题,但未能获得预期的帮助
  • 2. 该问题在最新版本中尚未修复
  • 3. 请注意,如果您提交的BUG相关 issue 缺少对应环境信息和最小可复现示例,我们将难以复现和定位问题,降低获得反馈的可能性
  • 4. 如果您提出的不是bug而是问题,请在讨论区发起讨论 https://github.com/kvcache-ai/ktransformers/discussions。否则该 issue 将被关闭
  • 5. 为方便社区交流,我将使用中文/英文或附上中文/英文翻译(如使用其他语言)。未附带翻译的非中文/英语内容可能会被关闭

问题描述

ROCM部署,每次都卡在cmake编译,单独执行命令后如下报错
cmake /home/roundcaky/ktransformers/csrc/ktransformers_ext -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/roundcaky/ktransformers/build/lib.linux-x86_64-cpython-311/ -DPYTHON_EXECUTABLE=/home/roundcaky/anaconda3/envs/ktransformers/bin/python -DCMAKE_BUILD_TYPE=Release -DKTRANSFORMERS_USE_ROCM=ON -D_GLIBCXX_USE_CXX11_ABI=1 -DLLAMA_NATIVE=ON -DEXAMPLE_VERSION_INFO=0.2.4.post1+rocm68torch26avx2
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- x86 detected
CMake Deprecation Warning at /home/roundcaky/ktransformers/third_party/pybind11/CMakeLists.txt:13 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

-- pybind11 v2.14.0 dev1
-- Found OpenMP: TRUE (found version "4.5")
-- OpenMP found
-- Warning: ccache not found - consider installing it for faster compilation or disable this warning with LLAMA_CCACHE=OFF
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- x86 detected
-- enabling CUDA
CMake Error at /home/roundcaky/anaconda3/envs/ktransformers/lib/python3.11/site-packages/cmake/data/share/cmake-4.0/Modules/Internal/CMakeCUDAFindToolkit.cmake:104 (message):
Failed to find nvcc.

Compiler requires the CUDA toolkit. Please set the CUDAToolkit_ROOT
variable.
Call Stack (most recent call first):
/home/roundcaky/anaconda3/envs/ktransformers/lib/python3.11/site-packages/cmake/data/share/cmake-4.0/Modules/CMakeDetermineCUDACompiler.cmake:85 (cmake_cuda_find_toolkit)
CMakeLists.txt:262 (enable_language)

执行了ROCM=ON依然会去检测CUDA。

复现步骤

cmake /home/roundcaky/ktransformers/csrc/ktransformers_ext -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/roundcaky/ktransformers/build/lib.linux-x86_64-cpython-311/ -DPYTHON_EXECUTABLE=/home/roundcaky/anaconda3/envs/ktransformers/bin/python -DCMAKE_BUILD_TYPE=Release -DKTRANSFORMERS_USE_ROCM=ON -D_GLIBCXX_USE_CXX11_ABI=1 -DLLAMA_NATIVE=ON -DEXAMPLE_VERSION_INFO=0.2.4.post1+rocm68torch26avx2

环境信息

环境是ubuntu24.04,torch2.6.2+rocm6.2.4,cmake4.0

Originally created by @roundcaky on GitHub (Apr 16, 2025). Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1150 Originally assigned to: @Azure-Tang on GitHub. ### 检查清单 - [x] 1. 我已经搜索过相关问题,但未能获得预期的帮助 - [x] 2. 该问题在最新版本中尚未修复 - [x] 3. 请注意,如果您提交的BUG相关 issue 缺少对应环境信息和最小可复现示例,我们将难以复现和定位问题,降低获得反馈的可能性 - [x] 4. 如果您提出的不是bug而是问题,请在讨论区发起讨论 https://github.com/kvcache-ai/ktransformers/discussions。否则该 issue 将被关闭 - [x] 5. 为方便社区交流,我将使用中文/英文或附上中文/英文翻译(如使用其他语言)。未附带翻译的非中文/英语内容可能会被关闭 ### 问题描述 ROCM部署,每次都卡在cmake编译,单独执行命令后如下报错 cmake /home/roundcaky/ktransformers/csrc/ktransformers_ext -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/roundcaky/ktransformers/build/lib.linux-x86_64-cpython-311/ -DPYTHON_EXECUTABLE=/home/roundcaky/anaconda3/envs/ktransformers/bin/python -DCMAKE_BUILD_TYPE=Release -DKTRANSFORMERS_USE_ROCM=ON -D_GLIBCXX_USE_CXX11_ABI=1 -DLLAMA_NATIVE=ON -DEXAMPLE_VERSION_INFO=0.2.4.post1+rocm68torch26avx2 -- CMAKE_SYSTEM_PROCESSOR: x86_64 -- x86 detected CMake Deprecation Warning at /home/roundcaky/ktransformers/third_party/pybind11/CMakeLists.txt:13 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. -- pybind11 v2.14.0 dev1 -- Found OpenMP: TRUE (found version "4.5") -- OpenMP found -- Warning: ccache not found - consider installing it for faster compilation or disable this warning with LLAMA_CCACHE=OFF -- CMAKE_SYSTEM_PROCESSOR: x86_64 -- x86 detected -- enabling CUDA CMake Error at /home/roundcaky/anaconda3/envs/ktransformers/lib/python3.11/site-packages/cmake/data/share/cmake-4.0/Modules/Internal/CMakeCUDAFindToolkit.cmake:104 (message): Failed to find nvcc. Compiler requires the CUDA toolkit. Please set the CUDAToolkit_ROOT variable. Call Stack (most recent call first): /home/roundcaky/anaconda3/envs/ktransformers/lib/python3.11/site-packages/cmake/data/share/cmake-4.0/Modules/CMakeDetermineCUDACompiler.cmake:85 (cmake_cuda_find_toolkit) CMakeLists.txt:262 (enable_language) 执行了ROCM=ON依然会去检测CUDA。 ### 复现步骤 cmake /home/roundcaky/ktransformers/csrc/ktransformers_ext -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/roundcaky/ktransformers/build/lib.linux-x86_64-cpython-311/ -DPYTHON_EXECUTABLE=/home/roundcaky/anaconda3/envs/ktransformers/bin/python -DCMAKE_BUILD_TYPE=Release -DKTRANSFORMERS_USE_ROCM=ON -D_GLIBCXX_USE_CXX11_ABI=1 -DLLAMA_NATIVE=ON -DEXAMPLE_VERSION_INFO=0.2.4.post1+rocm68torch26avx2 ### 环境信息 环境是ubuntu24.04,torch2.6.2+rocm6.2.4,cmake4.0
Author
Owner

@CYSTEV-chn commented on GitHub (Apr 18, 2025):

Failed to find nvcc.

<!-- gh-comment-id:2816127987 --> @CYSTEV-chn commented on GitHub (Apr 18, 2025): Failed to find nvcc.
Author
Owner

@Azure-Tang commented on GitHub (Apr 21, 2025):

尝试一下#1159merge以后的main分支呢?

<!-- gh-comment-id:2817584788 --> @Azure-Tang commented on GitHub (Apr 21, 2025): 尝试一下#1159merge以后的main分支呢?
Author
Owner

@roundcaky commented on GitHub (Apr 22, 2025):

尝试一下#1159merge以后的main分支呢?

好的我去试试看,我试过0.2.3,0.2.3post1,0.2.3post2,0.2.4和0.2.4post1,都不行

<!-- gh-comment-id:2819887030 --> @roundcaky commented on GitHub (Apr 22, 2025): > 尝试一下#1159merge以后的main分支呢? 好的我去试试看,我试过0.2.3,0.2.3post1,0.2.3post2,0.2.4和0.2.4post1,都不行
Author
Owner

@roundcaky commented on GitHub (Apr 22, 2025):

尝试一下#1159merge以后的main分支呢?

Image
你好,尝试了#1177后,报了这个ninja错误。

Image

<!-- gh-comment-id:2819947984 --> @roundcaky commented on GitHub (Apr 22, 2025): > 尝试一下#1159merge以后的main分支呢? ![Image](https://github.com/user-attachments/assets/c37d69ec-fc0b-41fe-93b6-cc18f03ec7c9) 你好,尝试了#1177后,报了这个ninja错误。 ![Image](https://github.com/user-attachments/assets/ab85096a-5242-419c-b760-34b515199ab4)
Author
Owner

@Azure-Tang commented on GitHub (Apr 22, 2025):

hello, 把falied to execute后面的报错整理成一行命令然后运行一下,看一下具体的编译问题是什么~

<!-- gh-comment-id:2819976376 --> @Azure-Tang commented on GitHub (Apr 22, 2025): hello, 把falied to execute后面的报错整理成一行命令然后运行一下,看一下具体的编译问题是什么~
Author
Owner

@roundcaky commented on GitHub (Apr 22, 2025):

hello, 把falied to execute后面的报错整理成一行命令然后运行一下,看一下具体的编译问题是什么~
你好,命令如下:
/opt/rocm-6.3.0/lib/llvm/bin/clang++ --offload-arch=gfx900 --offload-arch=gfx906 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx942 --offload-arch=gfx1030 --offload-arch=gfx1100 --offload-arch=gfx1101 -I/home/roundcaky/miniconda3/envs/ktransformers/lib/python3.11/site-packages/torch/include -I/home/roundcaky/miniconda3/envs/ktransformers/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/home/roundcaky/miniconda3/envs/ktransformers/lib/python3.11/site-packages/torch/include/TH -I/home/roundcaky/miniconda3/envs/ktransformers/lib/python3.11/site-packages/torch/include/THC -I/home/roundcaky/miniconda3/envs/ktransformers/lib/python3.11/site-packages/torch/include/THH -I/opt/rocm-6.3.0/include -I/home/roundcaky/miniconda3/envs/ktransformers/include/python3.11 -c -c -x hip /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip -o "/home/roundcaky/ktransformers/build/temp.linux-x86_64-cpython-311/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.o" -fPIC -D__HIP_PLATFORM_AMD__=1 -DUSE_ROCM=1 -DHIPBLAS_V2 -DCUDA_HAS_FP16=1 -D__HIP_NO_HALF_OPERATORS__=1 -D__HIP_NO_HALF_CONVERSIONS__=1 -O3 -Xcompiler -fPIC -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1016" -DTORCH_EXTENSION_NAME=vLLMMarlin -D_GLIBCXX_USE_CXX11_ABI=1 -fno-gpu-rdc -std=c++17

报错如下:
clang++: warning: argument unused during compilation: '-Xcompiler' [-Wunused-command-line-argument]
In file included from /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:3:
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_hip.cuh:49:43: error: use of undeclared identifier '__cvta_generic_to_shared'
49 | uint32_t smem = static_cast<uint32_t>(__cvta_generic_to_shared(smem_ptr));
| ^
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_hip.cuh:55:29: error: invalid input constraint 'l' in asm
55 | "r"(smem), "l"(glob_ptr), "n"(BYTES));
| ^
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_hip.cuh:60:43: error: use of undeclared identifier '__cvta_generic_to_shared'
60 | uint32_t smem = static_cast<uint32_t>(__cvta_generic_to_shared(smem_ptr));
| ^
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_hip.cuh:64:18: error: invalid input constraint 'l' in asm
64 | "l"(glob_ptr), "n"(BYTES));
| ^
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:331:3: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
331 | hipDeviceGetAttribute(&blocks, hipDeviceAttributeMultiprocessorCount, dev);
| ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:334:3: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
334 | hipDeviceGetAttribute(&max_shared_mem,
| ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
335 | hipDeviceAttributeMaxSharedMemoryPerBlock, dev);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:340:3: error: no matching function for call to 'hipFuncSetAttribute'
340 | CALL_IF(4, false)
| ^~~~~~~~~~~~~~~~~
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:268:7: note: expanded from macro 'CALL_IF'
268 | hipFuncSetAttribute(
| ^~~~~~~~~~~~~~~~~~~
/opt/rocm-6.3.0/lib/llvm/bin/../../../include/hip/hip_runtime_api.h:2262:12: note: candidate function not viable: no overload of 'marlin_repack_kernel' matching 'const void ' for 1st argument
2262 | hipError_t hipFuncSetAttribute(const void
func, hipFuncAttribute attr, int value);
| ^ ~~~~~~~~~~~~~~~~
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:341:3: error: no matching function for call to 'hipFuncSetAttribute'
341 | CALL_IF(4, true)
| ^~~~~~~~~~~~~~~~
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:268:7: note: expanded from macro 'CALL_IF'
268 | hipFuncSetAttribute(
| ^~~~~~~~~~~~~~~~~~~
/opt/rocm-6.3.0/lib/llvm/bin/../../../include/hip/hip_runtime_api.h:2262:12: note: candidate function not viable: no overload of 'marlin_repack_kernel' matching 'const void ' for 1st argument
2262 | hipError_t hipFuncSetAttribute(const void
func, hipFuncAttribute attr, int value);
| ^ ~~~~~~~~~~~~~~~~
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:342:3: error: no matching function for call to 'hipFuncSetAttribute'
342 | CALL_IF(8, false)
| ^~~~~~~~~~~~~~~~~
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:268:7: note: expanded from macro 'CALL_IF'
268 | hipFuncSetAttribute(
| ^~~~~~~~~~~~~~~~~~~
/opt/rocm-6.3.0/lib/llvm/bin/../../../include/hip/hip_runtime_api.h:2262:12: note: candidate function not viable: no overload of 'marlin_repack_kernel' matching 'const void ' for 1st argument
2262 | hipError_t hipFuncSetAttribute(const void
func, hipFuncAttribute attr, int value);
| ^ ~~~~~~~~~~~~~~~~
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:343:3: error: no matching function for call to 'hipFuncSetAttribute'
343 | CALL_IF(8, true)
| ^~~~~~~~~~~~~~~~
/home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:268:7: note: expanded from macro 'CALL_IF'
268 | hipFuncSetAttribute(
| ^~~~~~~~~~~~~~~~~~~
/opt/rocm-6.3.0/lib/llvm/bin/../../../include/hip/hip_runtime_api.h:2262:12: note: candidate function not viable: no overload of 'marlin_repack_kernel' matching 'const void ' for 1st argument
2262 | hipError_t hipFuncSetAttribute(const void
func, hipFuncAttribute attr, int value);
| ^ ~~~~~~~~~~~~~~~~
2 warnings and 8 errors generated when compiling for gfx1030.

<!-- gh-comment-id:2820054692 --> @roundcaky commented on GitHub (Apr 22, 2025): > hello, 把falied to execute后面的报错整理成一行命令然后运行一下,看一下具体的编译问题是什么~ 你好,命令如下: /opt/rocm-6.3.0/lib/llvm/bin/clang++ --offload-arch=gfx900 --offload-arch=gfx906 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx942 --offload-arch=gfx1030 --offload-arch=gfx1100 --offload-arch=gfx1101 -I/home/roundcaky/miniconda3/envs/ktransformers/lib/python3.11/site-packages/torch/include -I/home/roundcaky/miniconda3/envs/ktransformers/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/home/roundcaky/miniconda3/envs/ktransformers/lib/python3.11/site-packages/torch/include/TH -I/home/roundcaky/miniconda3/envs/ktransformers/lib/python3.11/site-packages/torch/include/THC -I/home/roundcaky/miniconda3/envs/ktransformers/lib/python3.11/site-packages/torch/include/THH -I/opt/rocm-6.3.0/include -I/home/roundcaky/miniconda3/envs/ktransformers/include/python3.11 -c -c -x hip /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip -o "/home/roundcaky/ktransformers/build/temp.linux-x86_64-cpython-311/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.o" -fPIC -D__HIP_PLATFORM_AMD__=1 -DUSE_ROCM=1 -DHIPBLAS_V2 -DCUDA_HAS_FP16=1 -D__HIP_NO_HALF_OPERATORS__=1 -D__HIP_NO_HALF_CONVERSIONS__=1 -O3 -Xcompiler -fPIC -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1016\" -DTORCH_EXTENSION_NAME=vLLMMarlin -D_GLIBCXX_USE_CXX11_ABI=1 -fno-gpu-rdc -std=c++17 报错如下: clang++: warning: argument unused during compilation: '-Xcompiler' [-Wunused-command-line-argument] In file included from /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:3: /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_hip.cuh:49:43: error: use of undeclared identifier '__cvta_generic_to_shared' 49 | uint32_t smem = static_cast<uint32_t>(__cvta_generic_to_shared(smem_ptr)); | ^ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_hip.cuh:55:29: error: invalid input constraint 'l' in asm 55 | "r"(smem), "l"(glob_ptr), "n"(BYTES)); | ^ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_hip.cuh:60:43: error: use of undeclared identifier '__cvta_generic_to_shared' 60 | uint32_t smem = static_cast<uint32_t>(__cvta_generic_to_shared(smem_ptr)); | ^ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_hip.cuh:64:18: error: invalid input constraint 'l' in asm 64 | "l"(glob_ptr), "n"(BYTES)); | ^ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:331:3: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result] 331 | hipDeviceGetAttribute(&blocks, hipDeviceAttributeMultiprocessorCount, dev); | ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:334:3: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result] 334 | hipDeviceGetAttribute(&max_shared_mem, | ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ 335 | hipDeviceAttributeMaxSharedMemoryPerBlock, dev); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:340:3: error: no matching function for call to 'hipFuncSetAttribute' 340 | CALL_IF(4, false) | ^~~~~~~~~~~~~~~~~ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:268:7: note: expanded from macro 'CALL_IF' 268 | hipFuncSetAttribute( \ | ^~~~~~~~~~~~~~~~~~~ /opt/rocm-6.3.0/lib/llvm/bin/../../../include/hip/hip_runtime_api.h:2262:12: note: candidate function not viable: no overload of 'marlin_repack_kernel' matching 'const void *' for 1st argument 2262 | hipError_t hipFuncSetAttribute(const void* func, hipFuncAttribute attr, int value); | ^ ~~~~~~~~~~~~~~~~ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:341:3: error: no matching function for call to 'hipFuncSetAttribute' 341 | CALL_IF(4, true) | ^~~~~~~~~~~~~~~~ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:268:7: note: expanded from macro 'CALL_IF' 268 | hipFuncSetAttribute( \ | ^~~~~~~~~~~~~~~~~~~ /opt/rocm-6.3.0/lib/llvm/bin/../../../include/hip/hip_runtime_api.h:2262:12: note: candidate function not viable: no overload of 'marlin_repack_kernel' matching 'const void *' for 1st argument 2262 | hipError_t hipFuncSetAttribute(const void* func, hipFuncAttribute attr, int value); | ^ ~~~~~~~~~~~~~~~~ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:342:3: error: no matching function for call to 'hipFuncSetAttribute' 342 | CALL_IF(8, false) | ^~~~~~~~~~~~~~~~~ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:268:7: note: expanded from macro 'CALL_IF' 268 | hipFuncSetAttribute( \ | ^~~~~~~~~~~~~~~~~~~ /opt/rocm-6.3.0/lib/llvm/bin/../../../include/hip/hip_runtime_api.h:2262:12: note: candidate function not viable: no overload of 'marlin_repack_kernel' matching 'const void *' for 1st argument 2262 | hipError_t hipFuncSetAttribute(const void* func, hipFuncAttribute attr, int value); | ^ ~~~~~~~~~~~~~~~~ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:343:3: error: no matching function for call to 'hipFuncSetAttribute' 343 | CALL_IF(8, true) | ^~~~~~~~~~~~~~~~ /home/roundcaky/ktransformers/csrc/custom_marlin/gptq_marlin/gptq_marlin_repack.hip:268:7: note: expanded from macro 'CALL_IF' 268 | hipFuncSetAttribute( \ | ^~~~~~~~~~~~~~~~~~~ /opt/rocm-6.3.0/lib/llvm/bin/../../../include/hip/hip_runtime_api.h:2262:12: note: candidate function not viable: no overload of 'marlin_repack_kernel' matching 'const void *' for 1st argument 2262 | hipError_t hipFuncSetAttribute(const void* func, hipFuncAttribute attr, int value); | ^ ~~~~~~~~~~~~~~~~ 2 warnings and 8 errors generated when compiling for gfx1030.
Author
Owner

@roundcaky commented on GitHub (Apr 22, 2025):

hello, 把falied to execute后面的报错整理成一行命令然后运行一下,看一下具体的编译问题是什么~

实际显卡是MI50,核心是gfx906,不知道为什么error log里显示的是gfx1030

<!-- gh-comment-id:2820174108 --> @roundcaky commented on GitHub (Apr 22, 2025): > hello, 把falied to execute后面的报错整理成一行命令然后运行一下,看一下具体的编译问题是什么~ 实际显卡是MI50,核心是gfx906,不知道为什么error log里显示的是gfx1030
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/ktransformers#801
No description provided.