Repository navigation
Find hipcub and rocprim in the HIP build - #1186
Merged
Merged
Conversation
The vendored ggml HIP backend compiles every ggml-cuda translation unit, and
argsort.cu includes <hipcub/hipcub.hpp> for its radix path over rows wider than
1024 columns. hipcub in turn needs rocprim's headers. Both ship as separate
ROCm components, so they are not necessarily next to hip and rocblas, and with
the nix packaging the ROCm build did not compile at all.
The build now looks for both with find_package (hipcub, rocprim) and falls
back to a header search over CMAKE_INCLUDE_PATH and ${ROCM_PATH}/include for
packagers that ship the headers without a CMake config package. The nix
package adds rocmPackages.hipcub and rocmPackages.rocprim to the build
inputs.
Co-Authored-By: Deepseek v4.1-Flash
Owner
|
@apt-install-coffee Thanks! Code review only and it looks safe. PR merged! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The vendored ggml HIP backend compiles every ggml-cuda translation unit, and argsort.cu includes <hipcub/hipcub.hpp> for its radix path over rows wider than 1024 columns. hipcub in turn needs rocprim's headers. Both ship as separate ROCm components, so they are not necessarily next to hip and rocblas, and with the nix packaging the ROCm build did not compile at all.
The build now looks for both with find_package (hipcub, rocprim) and falls back to a header search over CMAKE_INCLUDE_PATH and ${ROCM_PATH}/include for packagers that ship the headers without a CMake config package. The nix package adds rocmPackages.hipcub and rocmPackages.rocprim to the build inputs.
Co-Authored-By: Deepseek v4.1-Flash