summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorsrekolam <67086238+srekolam@users.noreply.github.com>2020-08-28 21:11:46 -0700
committerGitHub <noreply@github.com>2020-08-28 23:11:46 -0500
commit6739908144c0b55e537a56425bf339834d504b50 (patch)
tree8cd9661e2a75832c6e6ee7233fbd44c8a8970f75 /var
parent4b649b2d2b97df940b7438c6a34ac0ca5bec0342 (diff)
downloadspack-6739908144c0b55e537a56425bf339834d504b50.tar.gz
spack-6739908144c0b55e537a56425bf339834d504b50.tar.bz2
spack-6739908144c0b55e537a56425bf339834d504b50.tar.xz
spack-6739908144c0b55e537a56425bf339834d504b50.zip
mathlibs- rocrand recipe for amd rocm-3.5.0 release (#18283)
* mathlibs- rocrand recipe for amd rocm-3.5.0 release * fixing review comments
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/rocrand/package.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rocrand/package.py b/var/spack/repos/builtin/packages/rocrand/package.py
new file mode 100644
index 0000000000..b4cb4c81e1
--- /dev/null
+++ b/var/spack/repos/builtin/packages/rocrand/package.py
@@ -0,0 +1,37 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+
+from spack import *
+
+
+class Rocrand(CMakePackage):
+ """The rocRAND project provides functions that generate
+ pseudo-random and quasi-random numbers."""
+
+ homepage = "https://github.com/ROCmSoftwarePlatform/rocRAND"
+ url = "https://github.com/ROCmSoftwarePlatform/rocRAND/archive/rocm-3.5.0.tar.gz"
+
+ maintainers = ['srekolam', 'arjun-raj-kuppala']
+
+ version('3.5.0', sha256='592865a45e7ef55ad9d7eddc8082df69eacfd2c1f3e9c57810eb336b15cd5732')
+
+ depends_on('cmake@3.5.1:', type='build')
+
+ for ver in ['3.5.0']:
+ depends_on('hip@' + ver, type='build', when='@' + ver)
+ depends_on('comgr@' + ver, type='build', when='@' + ver)
+ depends_on('rocm-device-libs@' + ver, type='build', when='@' + ver)
+ depends_on('llvm-amdgpu@' + ver, type='build', when='@' + ver)
+ depends_on('rocminfo@' + ver, type='build', when='@' + ver)
+ depends_on('hsa-rocr-dev@' + ver, type='build', when='@' + ver)
+
+ def setup_build_environment(self, env):
+ env.set('CXX', self.spec['hip'].hipcc)
+
+ def cmake_args(self):
+ args = ['-DBUILD_BENCHMARK=OFF',
+ '-DBUILD_TEST=OFF']
+ return args