diff --git a/easybuild/easyconfigs/a/affinity/affinity-20230524-foss-2022a.eb b/easybuild/easyconfigs/a/affinity/affinity-20230524-foss-2022a.eb new file mode 100644 index 000000000000..ca44c02246d7 --- /dev/null +++ b/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' diff --git a/easybuild/easyconfigs/a/affinity/affinity-20230524-intel-2022a.eb b/easybuild/easyconfigs/a/affinity/affinity-20230524-intel-2022a.eb new file mode 100644 index 000000000000..03af1139e3a5 --- /dev/null +++ b/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'