mathlibs- rocrand recipe for amd rocm-3.5.0 release (#18283)
* mathlibs- rocrand recipe for amd rocm-3.5.0 release * fixing review comments
This commit is contained in:
parent
4b649b2d2b
commit
6739908144
37
var/spack/repos/builtin/packages/rocrand/package.py
Normal file
37
var/spack/repos/builtin/packages/rocrand/package.py
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user