From 8d765f76ff7c57e7617fe33c355baa96a43350a5 Mon Sep 17 00:00:00 2001 From: David Elsing Date: Tue, 3 Feb 2026 21:33:21 +0100 Subject: [PATCH] gnu: Add rocthrust. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/rocm-libs.scm (rocthrust): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/rocm-libs.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/rocm-libs.scm b/gnu/packages/rocm-libs.scm index 0e49180cf5..5432d96c59 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)))