summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDavid Elsing <david.elsing@posteo.net>2026-02-03 21:33:21 +0100
committerLudovic Courtès <ludo@gnu.org>2026-02-10 23:46:37 +0100
commit8d765f76ff7c57e7617fe33c355baa96a43350a5 (patch)
tree63b1ea034e4db70cd376f0f30e446cdffe6f5737 /gnu
parent4012f1a1349de8e446818293c71720a046e87f6a (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')
-rw-r--r--gnu/packages/rocm-libs.scm24
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.")
705 (description "This package contains a wrapper library with HIP parallel 705 (description "This package contains a wrapper library with HIP parallel
706primitives, in particular via rocPRIM for AMD GPUs.") 706primitives, in particular via rocPRIM for AMD GPUs.")
707 (license license:bsd-3))) 707 (license license:bsd-3)))
708
709(define-public rocthrust
710 (package
711 (name "rocthrust")
712 (version %rocm-version)
713 (source (rocm-library-source "rocthrust"))
714 (build-system cmake-build-system)
715 (arguments
716 (list
717 #:tests? #f
718 #:build-type "Release"
719 #:configure-flags
720 #~(list
721 "-DCMAKE_CXX_COMPILER=hipcc"
722 #$(string-append "-DAMDGPU_TARGETS="
723 (current-amd-gpu-targets-string)))))
724 (inputs (list rocm-hip-runtime rocprim))
725 (native-inputs (list rocm-cmake rocm-toolchain))
726 (properties `((amd-gpu-targets . ,%default-amd-gpu-targets)))
727 (home-page %rocm-libraries-url)
728 (synopsis "Thrust port for HIP and ROCm")
729 (description "@code{rocThrust} is a parallel algorithm library for ROCm,
730based on @code{rocPRIM}. It is a port of the CUDA Thrust library.")
731 (license license:asl2.0)))