diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/hsakmt-roct/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/hsakmt-roct/package.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hsakmt-roct/package.py b/var/spack/repos/builtin/packages/hsakmt-roct/package.py new file mode 100644 index 0000000000..89ffe616a0 --- /dev/null +++ b/var/spack/repos/builtin/packages/hsakmt-roct/package.py @@ -0,0 +1,33 @@ +# 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 HsakmtRoct(CMakePackage): + """This is a thunk python recipe to build and install Thunk Interface. + Thunk Interface is a user-mode API interfaces used to interact + with the ROCk driver.""" + + homepage = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface" + url = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/rocm-3.5.0.tar.gz" + + maintainers = ['srekolam', 'arjun-raj-kuppala'] + + version('3.5.0', sha256='d9f458c16cb62c3c611328fd2f2ba3615da81e45f3b526e45ff43ab4a67ee4aa') + + variant('build_type', default='Release', values=("Release", "Debug"), description='CMake build type') + + depends_on('cmake@3:', type='build') + depends_on('numactl') + + install_targets = ['install', 'install-dev'] + + def cmake_args(self): + args = [ + '-DBUILD_SHARED_LIBS="on"', + ] + return args |