summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarjun-raj-kuppala <60718144+arjun-raj-kuppala@users.noreply.github.com>2021-04-17 00:00:44 -0700
committerGitHub <noreply@github.com>2021-04-17 09:00:44 +0200
commit181341c8b3a4f301773fe2658107c94bc79b57f3 (patch)
treefa4b5b34c847badfb41d8cd1d936caf00f47b082
parenta4157173a02c655c371922312161075f52e8f09a (diff)
downloadspack-181341c8b3a4f301773fe2658107c94bc79b57f3.tar.gz
spack-181341c8b3a4f301773fe2658107c94bc79b57f3.tar.bz2
spack-181341c8b3a4f301773fe2658107c94bc79b57f3.tar.xz
spack-181341c8b3a4f301773fe2658107c94bc79b57f3.zip
AMD ROCm 4.1 release: Add new package - hipfft (#23061)
-rw-r--r--var/spack/repos/builtin/packages/hipfft/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hipfft/package.py b/var/spack/repos/builtin/packages/hipfft/package.py
new file mode 100644
index 0000000000..77b9724b30
--- /dev/null
+++ b/var/spack/repos/builtin/packages/hipfft/package.py
@@ -0,0 +1,27 @@
+# Copyright 2013-2021 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 Hipfft(CMakePackage):
+ """hipFFT is an FFT marshalling library. Currently,
+ hipFFT supports either rocFFT or cuFFT as backends."""
+
+ homepage = "https://github.com/ROCmSoftwarePlatform/hipFFT"
+ url = "https://github.com/ROCmSoftwarePlatform/hipFFT/archive/refs/tags/rocm-4.1.0.tar.gz"
+
+ maintainers = ['arjun-raj-kuppala', 'sreekolam']
+
+ version('4.1.0', sha256='885ffd4813f2c271150f1b8b386f0af775b38fc82b96ce6fd94eb4ba0c0180be')
+
+ depends_on('hip@4.1.0')
+ depends_on('hip-rocclr@4.1.0')
+ depends_on('rocfft@4.1.0')
+ depends_on('rocm-cmake@4.1.0', type='build')
+
+ def setup_build_environment(self, env):
+ env.set('CXX', self.spec['hip'].hipcc)