From 0f31ea0f359f895fb05ab51b95ff94fe3668ef11 Mon Sep 17 00:00:00 2001 From: benjamic Date: Mon, 21 Oct 2024 16:18:04 +0200 Subject: [PATCH 1/2] adding easyconfigs: pmt-1.3.1-GCCcore-13.3.0-CUDA-12.6.0.eb --- .../pmt-1.3.1-GCCcore-13.3.0-CUDA-12.6.0.eb | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 easybuild/easyconfigs/p/pmt/pmt-1.3.1-GCCcore-13.3.0-CUDA-12.6.0.eb diff --git a/easybuild/easyconfigs/p/pmt/pmt-1.3.1-GCCcore-13.3.0-CUDA-12.6.0.eb b/easybuild/easyconfigs/p/pmt/pmt-1.3.1-GCCcore-13.3.0-CUDA-12.6.0.eb new file mode 100644 index 00000000000..aceab404bda --- /dev/null +++ b/easybuild/easyconfigs/p/pmt/pmt-1.3.1-GCCcore-13.3.0-CUDA-12.6.0.eb @@ -0,0 +1,33 @@ +easyblock = 'CMakeMake' + +name = 'pmt' +version = '1.3.1' +versionsuffix = '-CUDA-%(cudaver)s' + +homepage = 'https://git.astron.nl/RD/pmt' +description = """PMT is a high-level software library capable of + collecting power consumption measurements on various hardware.""" + +toolchain = {'name': 'GCCcore', 'version': '13.3.0'} + +source_urls = ['https://git.astron.nl/RD/pmt/-/archive/%(version)s'] +sources = ['pmt-%(version)s.tar.gz'] +checksums = ['cf8c669ffb0fda4cb594550fb233f9654252db50671b59147826eadc0a3d5565'] + +builddependencies = [ + ('CMake', '3.29.3'), + ('binutils', '2.42'), +] + +dependencies = [ + ('CUDA', '12.6.0', '', SYSTEM) +] + +configopts = '-DPMT_BUILD_RAPL=1 -DPMT_BUILD_NVML=1 -DPMT_BUILD_NVIDIA=1' + +sanity_check_paths = { + 'files': ["lib/libpmt.so", "include/pmt/NVIDIA.h", "include/pmt/Rapl.h", "include/pmt/NVML.h"], + 'dirs': ["lib", "include"], +} + +moduleclass = 'lib' From fdd8fbe49a8a973cccd7977bdc86c10840d58dc5 Mon Sep 17 00:00:00 2001 From: Sam Moors Date: Sun, 17 Nov 2024 17:46:33 +0100 Subject: [PATCH 2/2] use SHLIB_EXT --- .../easyconfigs/p/pmt/pmt-1.3.1-GCCcore-13.3.0-CUDA-12.6.0.eb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easybuild/easyconfigs/p/pmt/pmt-1.3.1-GCCcore-13.3.0-CUDA-12.6.0.eb b/easybuild/easyconfigs/p/pmt/pmt-1.3.1-GCCcore-13.3.0-CUDA-12.6.0.eb index aceab404bda..695a90190e0 100644 --- a/easybuild/easyconfigs/p/pmt/pmt-1.3.1-GCCcore-13.3.0-CUDA-12.6.0.eb +++ b/easybuild/easyconfigs/p/pmt/pmt-1.3.1-GCCcore-13.3.0-CUDA-12.6.0.eb @@ -26,7 +26,7 @@ dependencies = [ configopts = '-DPMT_BUILD_RAPL=1 -DPMT_BUILD_NVML=1 -DPMT_BUILD_NVIDIA=1' sanity_check_paths = { - 'files': ["lib/libpmt.so", "include/pmt/NVIDIA.h", "include/pmt/Rapl.h", "include/pmt/NVML.h"], + 'files': ["lib/libpmt.%s" % SHLIB_EXT, "include/pmt/NVIDIA.h", "include/pmt/Rapl.h", "include/pmt/NVML.h"], 'dirs': ["lib", "include"], }