diff options
| author | David Elsing <david.elsing@posteo.net> | 2026-02-03 21:33:21 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-02-10 23:46:37 +0100 |
| commit | 8d765f76ff7c57e7617fe33c355baa96a43350a5 (patch) | |
| tree | 63b1ea034e4db70cd376f0f30e446cdffe6f5737 /gnu/packages/rocm-libs.scm | |
| parent | 4012f1a1349de8e446818293c71720a046e87f6a (diff) | |
gnu: Add rocthrust.
* gnu/packages/rocm-libs.scm (rocthrust): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/rocm-libs.scm')
| -rw-r--r-- | gnu/packages/rocm-libs.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/rocm-libs.scm b/gnu/packages/rocm-libs.scm index 0e49180cf5a..5432d96c591 100644 --- a/gnu/packages/rocm-libs.scm +++ b/gnu/packages/rocm-libs.scm @@ -705,3 +705,27 @@ rocSOLVER for AMD GPUs.") (description "This package contains a wrapper library with HIP parallel primitives, in particular via rocPRIM for AMD GPUs.") (license license:bsd-3))) + +(define-public rocthrust + (package + (name "rocthrust") + (version %rocm-version) + (source (rocm-library-source "rocthrust")) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:build-type "Release" + #:configure-flags + #~(list + "-DCMAKE_CXX_COMPILER=hipcc" + #$(string-append "-DAMDGPU_TARGETS=" + (current-amd-gpu-targets-string))))) + (inputs (list rocm-hip-runtime rocprim)) + (native-inputs (list rocm-cmake rocm-toolchain)) + (properties `((amd-gpu-targets . ,%default-amd-gpu-targets))) + (home-page %rocm-libraries-url) + (synopsis "Thrust port for HIP and ROCm") + (description "@code{rocThrust} is a parallel algorithm library for ROCm, +based on @code{rocPRIM}. It is a port of the CUDA Thrust library.") + (license license:asl2.0))) |
