summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarjun-raj-kuppala <60718144+arjun-raj-kuppala@users.noreply.github.com>2021-08-11 04:12:31 +0530
committerGitHub <noreply@github.com>2021-08-11 00:42:31 +0200
commitd88d887ed0fa69ebbd3a6f10e70f1cfa3abcdf6a (patch)
treec8aa13ac31e60745a6c464a2435a5e01ad8baae9
parent371bc37dd4536009787fa4370b5fd7539e6e0478 (diff)
downloadspack-d88d887ed0fa69ebbd3a6f10e70f1cfa3abcdf6a.tar.gz
spack-d88d887ed0fa69ebbd3a6f10e70f1cfa3abcdf6a.tar.bz2
spack-d88d887ed0fa69ebbd3a6f10e70f1cfa3abcdf6a.tar.xz
spack-d88d887ed0fa69ebbd3a6f10e70f1cfa3abcdf6a.zip
AMD ROCm 4.3.0 - bump up version for llvmamdgpu, hsakmt-roct, rocm-cmake, rocm-smi-lib (#25228)
Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/hsakmt-roct/package.py3
-rw-r--r--var/spack/repos/builtin/packages/llvm-amdgpu/package.py25
-rw-r--r--var/spack/repos/builtin/packages/rocm-cmake/package.py3
-rw-r--r--var/spack/repos/builtin/packages/rocm-smi-lib/package.py3
4 files changed, 26 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/hsakmt-roct/package.py b/var/spack/repos/builtin/packages/hsakmt-roct/package.py
index a46e9f767e..a0601be027 100644
--- a/var/spack/repos/builtin/packages/hsakmt-roct/package.py
+++ b/var/spack/repos/builtin/packages/hsakmt-roct/package.py
@@ -14,11 +14,12 @@ class HsakmtRoct(CMakePackage):
homepage = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface"
git = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface.git"
- url = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/rocm-4.2.0.tar.gz"
+ url = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/archive/rocm-4.3.0.tar.gz"
maintainers = ['srekolam', 'arjun-raj-kuppala']
version('master', branch='master')
+ version('4.3.0', sha256='1ef5fe687bc23ffda17841fe354c1fb94e9aaf276ca9e5757488852f9066f231')
version('4.2.0', sha256='cc325d4b9a96062f2ad0515fce724a8c64ba56a7d7f1ac4a0753941b8599c52e')
version('4.1.0', sha256='8443ed5907a7ba9ad4003a49d90ff7b8886e1b2a5e90f14e4035765a7f64d7ca')
version('4.0.0', sha256='a6960fffc8388731ee18953faae12d1449c582e3b3594418845a544455895f42')
diff --git a/var/spack/repos/builtin/packages/llvm-amdgpu/package.py b/var/spack/repos/builtin/packages/llvm-amdgpu/package.py
index 507c3f7569..840182d230 100644
--- a/var/spack/repos/builtin/packages/llvm-amdgpu/package.py
+++ b/var/spack/repos/builtin/packages/llvm-amdgpu/package.py
@@ -15,11 +15,12 @@ class LlvmAmdgpu(CMakePackage):
homepage = "https://github.com/RadeonOpenCompute/llvm-project"
git = "https://github.com/RadeonOpenCompute/llvm-project.git"
- url = "https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-4.1.0.tar.gz"
+ url = "https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-4.3.0.tar.gz"
maintainers = ['srekolam', 'arjun-raj-kuppala', 'haampie']
version('master', branch='amd-stg-open')
+ version('4.3.0', sha256='1567d349cd3bcd2c217b3ecec2f70abccd5e9248bd2c3c9f21d4cdb44897fc87')
version('4.2.0', sha256='751eca1d18595b565cfafa01c3cb43efb9107874865a60c80d6760ba83edb661')
version('4.1.0', sha256='244e38d824fa7dfa8d0edf3c036b3c84e9c17a16791828e4b745a8d31eb374ae')
version('4.0.0', sha256='aa1f80f429fded465e86bcfaef72255da1af1c5c52d58a4c979bc2f6c2da5a69')
@@ -50,7 +51,7 @@ class LlvmAmdgpu(CMakePackage):
patch('fix-ncurses-3.9.0.patch', when='@3.9.0:4.0.0')
# This is already fixed in upstream but not in 4.2.0 rocm release
- patch('fix-spack-detection-4.2.0.patch', when='@4.2.0')
+ patch('fix-spack-detection-4.2.0.patch', when='@4.2.0:')
conflicts('^cmake@3.19.0')
@@ -59,6 +60,7 @@ class LlvmAmdgpu(CMakePackage):
# Add device libs sources so they can be an external LLVM project
for d_version, d_shasum in [
+ ('4.3.0', '055a67e63da6491c84cd45865500043553fb33c44d538313dd87040a6f3826f2'),
('4.2.0', '34a2ac39b9bb7cfa8175cbab05d30e7f3c06aaffce99eed5f79c616d0f910f5f'),
('4.1.0', 'f5f5aa6bfbd83ff80a968fa332f80220256447c4ccb71c36f1fbd2b4a8e9fc1b'),
('4.0.0', 'd0aa495f9b63f6d8cf8ac668f4dc61831d996e9ae3f15280052a37b9d7670d2a'),
@@ -92,12 +94,25 @@ class LlvmAmdgpu(CMakePackage):
'compiler-rt'
]
+ args = []
+ if self.spec.satisfies('@4.3.0:'):
+ llvm_projects.append('libcxx')
+ llvm_projects.append('libcxxabi')
+
+ args = [
+ self.define('LIBCXX_ENABLE_SHARED', 'OFF'),
+ self.define('LIBCXX_ENABLE_STATIC', 'ON'),
+ self.define('LIBCXX_INSTALL_LIBRARY', 'OFF'),
+ self.define('LIBCXX_INSTALL_HEADERS', 'OFF'),
+ self.define('LIBCXXABI_ENABLE_SHARED', 'OFF'),
+ self.define('LIBCXXABI_ENABLE_STATIC', 'ON'),
+ self.define('LIBCXXABI_INSTALL_STATIC_LIBRARY', 'OFF'),
+ ]
+
if '+openmp' in self.spec:
llvm_projects.append('openmp')
- args = [
- self.define('LLVM_ENABLE_PROJECTS', ';'.join(llvm_projects))
- ]
+ args.extend([self.define('LLVM_ENABLE_PROJECTS', ';'.join(llvm_projects))])
# Enable rocm-device-libs as a external project
if '+rocm-device-libs' in self.spec:
diff --git a/var/spack/repos/builtin/packages/rocm-cmake/package.py b/var/spack/repos/builtin/packages/rocm-cmake/package.py
index 4b8657a064..3218a66c45 100644
--- a/var/spack/repos/builtin/packages/rocm-cmake/package.py
+++ b/var/spack/repos/builtin/packages/rocm-cmake/package.py
@@ -13,11 +13,12 @@ class RocmCmake(CMakePackage):
homepage = "https://github.com/RadeonOpenCompute/rocm-cmake"
git = "https://github.com/RadeonOpenCompute/rocm-cmake.git"
- url = "https://github.com/RadeonOpenCompute/rocm-cmake/archive/rocm-4.2.0.tar.gz"
+ url = "https://github.com/RadeonOpenCompute/rocm-cmake/archive/rocm-4.3.0.tar.gz"
maintainers = ['srekolam', 'arjun-raj-kuppala']
version('master', branch='master')
+ version('4.3.0', sha256='bb752d8d2727b7ef2754838e389075dd4212cf5439d099392141f93d05391415')
version('4.2.0', sha256='299e190ec3d38c2279d9aec762469628f0b2b1867adc082edc5708d1ac785c3b')
version('4.1.0', sha256='a4521d119fa07954e529d5e717ad1b338992c0694690dbce00fee26c01129c8c')
version('4.0.0', sha256='4577487acaa6e041a1316145867584f31caaf0d4aa2dd8fd7f82f81c269cada6')
diff --git a/var/spack/repos/builtin/packages/rocm-smi-lib/package.py b/var/spack/repos/builtin/packages/rocm-smi-lib/package.py
index 00a6b57b40..a837a00bb8 100644
--- a/var/spack/repos/builtin/packages/rocm-smi-lib/package.py
+++ b/var/spack/repos/builtin/packages/rocm-smi-lib/package.py
@@ -16,11 +16,12 @@ class RocmSmiLib(CMakePackage):
homepage = "https://github.com/RadeonOpenCompute/rocm_smi_lib"
git = "https://github.com/RadeonOpenCompute/rocm_smi_lib.git"
- url = "https://github.com/RadeonOpenCompute/rocm_smi_lib/archive/rocm-4.2.0.tar.gz"
+ url = "https://github.com/RadeonOpenCompute/rocm_smi_lib/archive/rocm-4.3.0.tar.gz"
maintainers = ['srekolam', 'arjun-raj-kuppala']
version('master', branch='master')
+ version('4.3.0', sha256='c3ff56a14d334cb688a2e9a748dac46d9c2f7f576fe1f53416b1a0edbe842f8b')
version('4.2.0', sha256='c31bf91c492f00d0c5ab21e45afbd7baa990e4a8d7ce9b01e3b988e5fdd53f50')
version('4.1.0', sha256='0c1d2152e40e14bb385071ae16e7573290fb9f74afa5ab887c54f4dd75849a6b')
version('4.0.0', sha256='93d19229b5a511021bf836ddc2a9922e744bf8ee52ee0e2829645064301320f4')