summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGanesh Kumar <46193450+gkathirv@users.noreply.github.com>2020-09-28 20:56:20 +0530
committerGitHub <noreply@github.com>2020-09-28 10:26:20 -0500
commita3d290a248cdbdd655ded554b4c447753a6da519 (patch)
tree36268f3531e7eeabecd15a9b20363102ca193b89 /var
parenta50b3323a913fb041d488e83b84d102894ffc235 (diff)
downloadspack-a3d290a248cdbdd655ded554b4c447753a6da519.tar.gz
spack-a3d290a248cdbdd655ded554b4c447753a6da519.tar.bz2
spack-a3d290a248cdbdd655ded554b4c447753a6da519.tar.xz
spack-a3d290a248cdbdd655ded554b4c447753a6da519.zip
ROCm3.8 hipfort recipe (#19024)
* ROCm3.8 hipfort recipe * review comments
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hipfort/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hipfort/package.py b/var/spack/repos/builtin/packages/hipfort/package.py
new file mode 100644
index 0000000000..2f4d93c246
--- /dev/null
+++ b/var/spack/repos/builtin/packages/hipfort/package.py
@@ -0,0 +1,26 @@
+# 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 Hipfort(CMakePackage):
+ """ Radeon Open Compute Parallel Primitives Library"""
+
+ homepage = "https://github.com/ROCmSoftwarePlatform/hipfort"
+ url = "https://github.com/ROCmSoftwarePlatform/hipfort/archive/rocm-3.8.0.tar.gz"
+
+ maintainers = ['srekolam', 'arjun-raj-kuppala']
+
+ version('3.8.0', sha256='0132e9949f758dd8b8a462d133b3316101440cd503aa6c53bea9e34e61bbb3cc')
+
+ variant('build_type', default='Release', values=("Release", "Debug"), description='CMake build type')
+
+ depends_on('cmake@3:', type='build')
+ for ver in ['3.8.0']:
+ depends_on('hip@' + ver, type='build', when='@' + ver)
+
+ def setup_build_environment(self, env):
+ env.set('CXX', self.spec['hip'].hipcc)