Skip to content

Commit

Permalink
Merge pull request #18051 from sara-nl/20230606161515_new_pr_affinity…
Browse files Browse the repository at this point in the history
…20230524

{tools}[foss/2022a,intel/2022a] affinity v20230524
  • Loading branch information
verdurin committed Jun 9, 2023
2 parents 8ce388f + 0b637da commit 1389f03
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions easybuild/easyconfigs/a/affinity/affinity-20230524-foss-2022a.eb
@@ -0,0 +1,30 @@
easyblock = 'MakeCp'

name = 'affinity'
version = '20230524'
local_commit = '7d4d426'

homepage = 'https://github.com/vkarak/affinity'
description = """A small C++ wrapper for managing Linux CPU sets and CPU affinity.
It also includes a tool to report binding, which is useful for testing different binding options"""

toolchain = {'name': 'foss', 'version': '2022a'}

source_urls = ['https://github.com/vkarak/affinity/archive/']
sources = ['%s.tar.gz' % local_commit]
checksums = ['d4d245deca0ac46c870773f6c5f43d4a5d4d2a13cefdf4d912f3588ee2d41072']

buildopts = r'CXX="$MPICXX" OPENMP=1 MPI=1 '
buildopts += '&& mkdir -p bin && mv affinity bin/'
buildopts += '&& rm Makefile && rm README.md && rm -r src && rm -r tests'

files_to_copy = ['*']

sanity_check_commands = ['mpirun -np 1 affinity']

sanity_check_paths = {
'files': ['bin/affinity'],
'dirs': [],
}

moduleclass = 'tools'
30 changes: 30 additions & 0 deletions easybuild/easyconfigs/a/affinity/affinity-20230524-intel-2022a.eb
@@ -0,0 +1,30 @@
easyblock = 'MakeCp'

name = 'affinity'
version = '20230524'
local_commit = '7d4d426'

homepage = 'https://github.com/vkarak/affinity'
description = """A small C++ wrapper for managing Linux CPU sets and CPU affinity.
It also includes a tool to report binding, which is useful for testing different binding options"""

toolchain = {'name': 'intel', 'version': '2022a'}

source_urls = ['https://github.com/vkarak/affinity/archive/']
sources = ['%s.tar.gz' % local_commit]
checksums = ['d4d245deca0ac46c870773f6c5f43d4a5d4d2a13cefdf4d912f3588ee2d41072']

buildopts = r'CXX="$MPICXX" OPENMP=1 MPI=1 '
buildopts += '&& mkdir -p bin && mv affinity bin/'
buildopts += '&& rm Makefile && rm README.md && rm -r src && rm -r tests'

files_to_copy = ['*']

sanity_check_commands = ['mpirun -np 1 affinity']

sanity_check_paths = {
'files': ['bin/affinity'],
'dirs': [],
}

moduleclass = 'tools'

0 comments on commit 1389f03

Please sign in to comment.