mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
gnu: Add hiprand.
Adapted from the Guix-HPC channel (https://gitlab.inria.fr/guix-hpc/guix-hpc). * gnu/packages/rocm-libs.scm (hiprand): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
committed by
Ludovic Courtès
parent
ee1614f4ae
commit
2f8b648eac
@@ -94,3 +94,27 @@
|
||||
(description "This package contains implementations for
|
||||
pseudorandom and quasirandom number generation in HIP.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public hiprand
|
||||
(package
|
||||
(name "hiprand")
|
||||
(version %rocm-version)
|
||||
(source (rocm-library-source "hiprand"))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #f ; requires GPU
|
||||
#:build-type "Release"
|
||||
#:configure-flags
|
||||
#~(list
|
||||
"-DCMAKE_CXX_COMPILER=hipcc"
|
||||
(string-append "-DAMDGPU_TARGETS="
|
||||
#$(current-amd-gpu-targets-string)))))
|
||||
(inputs (list rocm-hip-runtime rocrand))
|
||||
(native-inputs (list rocm-cmake rocm-toolchain))
|
||||
(properties `((amd-gpu-targets . ,%default-amd-gpu-targets)))
|
||||
(home-page %rocm-libraries-url)
|
||||
(synopsis "RAND library with multiple supported backends")
|
||||
(description "This package contains a wrapper library for generating
|
||||
random numbers on GPUs, in particular via rocRAND for AMD GPUs.")
|
||||
(license license:expat)))
|
||||
|
||||
Reference in New Issue
Block a user