summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/rocm-debug-agent/0002-add-hip-architecture.patch12
-rw-r--r--var/spack/repos/builtin/packages/rocm-debug-agent/package.py9
2 files changed, 18 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/rocm-debug-agent/0002-add-hip-architecture.patch b/var/spack/repos/builtin/packages/rocm-debug-agent/0002-add-hip-architecture.patch
new file mode 100644
index 0000000000..b136132157
--- /dev/null
+++ b/var/spack/repos/builtin/packages/rocm-debug-agent/0002-add-hip-architecture.patch
@@ -0,0 +1,12 @@
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index 62ee104..e1dd0d5 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -42,6 +42,7 @@ find_package(HIP REQUIRED MODULE)
+ file(GLOB SOURCES "*.cpp")
+
+ set_source_files_properties(${SOURCES} PROPERTIES HIP_SOURCE_PROPERTY_FORMAT 1)
++set(CMAKE_HIP_ARCHITECTURES gfx900 gfx906 gfx908 gfx90a )
+ hip_add_executable(rocm-debug-agent-test ${SOURCES}
+ HIPCC_OPTIONS --amdgpu-target=gfx900 --amdgpu-target=gfx906
+ --amdgpu-target=gfx908 --amdgpu-target=gfx90a
diff --git a/var/spack/repos/builtin/packages/rocm-debug-agent/package.py b/var/spack/repos/builtin/packages/rocm-debug-agent/package.py
index fc17cf9588..28962a982b 100644
--- a/var/spack/repos/builtin/packages/rocm-debug-agent/package.py
+++ b/var/spack/repos/builtin/packages/rocm-debug-agent/package.py
@@ -16,6 +16,7 @@ class RocmDebugAgent(CMakePackage):
maintainers = ['srekolam', 'arjun-raj-kuppala']
+ version('4.3.0', sha256='0cdee5792b808e03b839070da0d1b08dc4078a7d1fc295f0c99c6a5ae7d636a6')
version('4.2.0', sha256='ce02a5b752291882daa0a2befa23944e59087ce9fe65a91061476c3c399e4a0c')
version('4.1.0', sha256='b1ae874887e5ee037070f1dd46b145ad02ec9fd8a724c6b6ae194b534f01acdb')
version('4.0.0', sha256='a9e64834d56a9221c242e71aa110c2cef0087aa8f86f50428dd618e5e623cc3c')
@@ -37,19 +38,21 @@ class RocmDebugAgent(CMakePackage):
variant('build_type', default='Release', values=("Release", "Debug"), description='CMake build type')
depends_on('cmake@3:', type='build')
- depends_on("elfutils", type='link')
+ depends_on('elfutils@:0.168', type='link')
for ver in ['3.5.0', '3.7.0', '3.8.0', '3.9.0', '3.10.0', '4.0.0', '4.1.0',
- '4.2.0']:
+ '4.2.0', '4.3.0']:
depends_on('hsa-rocr-dev@' + ver, when='@' + ver)
depends_on('hsakmt-roct@' + ver, when='@' + ver)
- for ver in ['3.7.0', '3.8.0', '3.9.0', '3.10.0', '4.0.0', '4.1.0', '4.2.0']:
+ for ver in ['3.7.0', '3.8.0', '3.9.0', '3.10.0', '4.0.0', '4.1.0', '4.2.0',
+ '4.3.0']:
depends_on('rocm-dbgapi@' + ver, when='@' + ver)
depends_on('hip@' + ver, when='@' + ver)
# https://github.com/ROCm-Developer-Tools/rocr_debug_agent/pull/4
patch('0001-Drop-overly-strict-Werror-flag.patch', when='@3.7.0:')
+ patch('0002-add-hip-architecture.patch', when='@3.9.0:')
@property
def root_cmakelists_dir(self):