Skip to content

Conversation

haiyuewa
Copy link
Contributor

@haiyuewa haiyuewa commented Sep 4, 2025

Since ROCm 6.4 [1], AMDGPU_TARGETS has been deprecated, and will print the warnning message if the new GPU_TARGETS is not defined:

#9 1.624 -- Detecting HIP compile features
#9 1.625 -- Detecting HIP compile features - done
#9 1.634 CMake Warning (dev) at /opt/rocm/lib/cmake/hip/hip-config-amd.cmake:70 (message):
#9 1.634   AMDGPU_TARGETS is deprecated.  Please use GPU_TARGETS instead.
#9 1.634 Call Stack (most recent call first):
#9 1.634   /opt/rocm/lib/cmake/hip/hip-config.cmake:149 (include)
#9 1.634   ggml/src/ggml-hip/CMakeLists.txt:39 (find_package)
#9 1.634 This warning is for project developers.  Use -Wno-dev to suppress it.
#9 1.634 
#9 1.664 -- HIP and hipBLAS found
#9 1.666 -- Including HIP backend

Define both AMDGPU_TARGETS and GPU_TARGETS to make the old ROCm happy.

[1] ROCm/clr@def369a

Make sure to read the contributing guidelines before submitting a PR

@haiyuewa haiyuewa requested a review from ngxson as a code owner September 4, 2025 08:51
@haiyuewa haiyuewa force-pushed the fix-rocm-docker-build-deprecated-warnning branch from e5a4143 to cb08d6d Compare September 4, 2025 09:07
@github-actions github-actions bot added the devops improvements to build systems and github actions label Sep 4, 2025
Since ROCm 6.4 [1], AMDGPU_TARGETS has been deprecated, and will print the
warnning message if the new GPU_TARGETS is not defined:

    #9 1.624 -- Detecting HIP compile features
    #9 1.625 -- Detecting HIP compile features - done
    #9 1.634 CMake Warning (dev) at /opt/rocm/lib/cmake/hip/hip-config-amd.cmake:70 (message):
    #9 1.634   AMDGPU_TARGETS is deprecated.  Please use GPU_TARGETS instead.
    #9 1.634 Call Stack (most recent call first):
    #9 1.634   /opt/rocm/lib/cmake/hip/hip-config.cmake:149 (include)
    #9 1.634   ggml/src/ggml-hip/CMakeLists.txt:39 (find_package)
    #9 1.634 This warning is for project developers.  Use -Wno-dev to suppress it.
    #9 1.634
    #9 1.664 -- HIP and hipBLAS found
    #9 1.666 -- Including HIP backend

Define both AMDGPU_TARGETS and GPU_TARGETS to make the old ROCm happy.

[1] ROCm/clr@def369a
@haiyuewa haiyuewa force-pushed the fix-rocm-docker-build-deprecated-warnning branch from cb08d6d to 17867c2 Compare September 8, 2025 05:18
@haiyuewa
Copy link
Contributor Author

A nit PR, close it.

@haiyuewa haiyuewa closed this Sep 11, 2025
@haiyuewa haiyuewa deleted the fix-rocm-docker-build-deprecated-warnning branch September 11, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops improvements to build systems and github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant