summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Berger <rberger@lanl.gov>2024-08-26 21:42:30 -0600
committerGitHub <noreply@github.com>2024-08-26 21:42:30 -0600
commit76957f19f96a7eca9ce44a80b7209dd8ebd4b87c (patch)
tree00114d9ce3ef723ece1040caea4d89ed00decc7c
parentc7001efeb8ba29d76dc95e52a6244d82b7be2f41 (diff)
downloadspack-76957f19f96a7eca9ce44a80b7209dd8ebd4b87c.tar.gz
spack-76957f19f96a7eca9ce44a80b7209dd8ebd4b87c.tar.bz2
spack-76957f19f96a7eca9ce44a80b7209dd8ebd4b87c.tar.xz
spack-76957f19f96a7eca9ce44a80b7209dd8ebd4b87c.zip
nvpl-fft: new package (#45985)
-rw-r--r--var/spack/repos/builtin/packages/nvpl-fft/package.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nvpl-fft/package.py b/var/spack/repos/builtin/packages/nvpl-fft/package.py
new file mode 100644
index 0000000000..b7a9964f60
--- /dev/null
+++ b/var/spack/repos/builtin/packages/nvpl-fft/package.py
@@ -0,0 +1,38 @@
+# Copyright 2013-2024 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.package import *
+
+
+class NvplFft(Package):
+ """NVPL FFT (NVIDIA Performance Libraries FFT) is part of NVIDIA Performance Libraries
+ and provides Fast Fourier Transform (FFT) calculations on ARM CPUs.
+ """
+
+ homepage = "https://docs.nvidia.com/nvpl/_static/blas/index.html"
+ url = (
+ "https://developer.download.nvidia.com/compute/nvpl/redist"
+ "/nvpl_fft/linux-sbsa/nvpl_fft-linux-sbsa-0.1.0-archive.tar.xz"
+ )
+
+ license("UNKNOWN")
+
+ version("0.3.0", sha256="e20791b77fa705e5a4f7aa5dada39b2a41e898189e0e60e680576128d532269b")
+ version("0.2.0.2", sha256="264343405aad6aca451bf8bd0988b6217b2bb17fd8f99394b83e04d9ab2f7f91")
+ version("0.1.0", sha256="0344f8e15e5b40f4d552f7013fe04a32e54a092cc3ebede51ddfce74b44c6e7d")
+
+ provides("fftw-api@3")
+
+ requires("target=armv8.2a:", msg="Any CPU with Arm-v8.2a+ microarch")
+
+ conflicts("%gcc@:7")
+ conflicts("%clang@:13")
+
+ def url_for_version(self, version):
+ url = "https://developer.download.nvidia.com/compute/nvpl/redist/nvpl_fft/linux-sbsa/nvpl_fft-linux-sbsa-{0}-archive.tar.xz"
+ return url.format(version)
+
+ def install(self, spec, prefix):
+ install_tree(".", prefix)