-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using easyconfigs in lieu of submodules for openmc
- Loading branch information
1 parent
90f17c2
commit f694e1b
Showing
7 changed files
with
171 additions
and
31 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
easybuild/easyconfigs/c/Catch2/Catch2-2.13.10-GCCcore-11.3.0.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
easyblock = 'CMakeMake' | ||
|
||
name = 'Catch2' | ||
version = '2.13.10' | ||
|
||
homepage = 'https://github.com/catchorg/Catch2' | ||
description = """A modern, C++-native, header-only, | ||
test framework for unit-tests, TDD and BDD | ||
- using C++11, C++14, C++17 and later | ||
""" | ||
|
||
toolchain = {'name': 'GCCcore', 'version': '11.3.0'} | ||
|
||
source_urls = ['https://github.com/catchorg/Catch2/archive/'] | ||
sources = ['v%(version)s.tar.gz'] | ||
checksums = ['d54a712b7b1d7708bc7a819a8e6e47b2fde9536f487b89ccbca295072a7d9943'] | ||
|
||
builddependencies = [ | ||
('binutils', '2.38'), # to make CMake compiler health check pass on old systems | ||
('CMake', '3.29.3'), | ||
] | ||
|
||
separate_build_dir = True | ||
|
||
sanity_check_paths = { | ||
'files': ['include/catch2/catch.hpp'], | ||
'dirs': ['lib/cmake'], | ||
} | ||
|
||
moduleclass = 'lib' |
20 changes: 20 additions & 0 deletions
20
easybuild/easyconfigs/g/gsl-lite/gsl-lite-0.41.0-foss-2022a.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name = 'gsl-lite' | ||
version = '0.41.0' | ||
|
||
homepage = 'https://github.com/gsl-lite/gsl-lite' | ||
description = "gsl-lite – A single-file header-only version of ISO C++ Guidelines Support Library (GSL) for C++98, C++11, and later " | ||
software_license_urls = ['https://github.com/gsl-lite/gsl-lite/blob/master/LICENSE'] | ||
toolchain = {'name': 'foss', 'version': '2022a'} | ||
|
||
source_urls = ['https://github.com/gsl-lite/%(namelower)s/archive'] | ||
sources = ['v%(version)s.tar.gz'] | ||
checksums = ['4682d8a60260321b92555760be3b9caab60e2a71f95eddbdfb91e557ee93302a'] | ||
|
||
builddependencies = [('CMake', '3.23.1'),('make','4.3')] | ||
|
||
easyblock = 'CMakeMake' | ||
|
||
sanity_check_paths = { | ||
'files': ['include/gsl/gsl-lite.hpp','include/gsl-lite/gsl-lite.hpp'], | ||
'dirs': ['include/gsl','include/gsl-lite'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
easybuild/easyconfigs/o/openmc/openmc-0.15.0_turn_off_submodule_check.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
diff --unified --recursive --text openmc-0.15.0.orig/CMakeLists.txt openmc-0.15.0.new/CMakeLists.txt | ||
--- openmc-0.15.0.orig/CMakeLists.txt 2024-06-22 03:28:56.000000000 +0200 | ||
+++ openmc-0.15.0.new/CMakeLists.txt 2024-07-10 11:28:56.781174726 +0200 | ||
@@ -25,16 +25,17 @@ | ||
# Command line options | ||
#=============================================================================== | ||
|
||
-option(OPENMC_USE_OPENMP "Enable shared-memory parallelism with OpenMP" ON) | ||
-option(OPENMC_BUILD_TESTS "Build tests" ON) | ||
-option(OPENMC_ENABLE_PROFILE "Compile with profiling flags" OFF) | ||
-option(OPENMC_ENABLE_COVERAGE "Compile with coverage analysis flags" OFF) | ||
-option(OPENMC_USE_DAGMC "Enable support for DAGMC (CAD) geometry" OFF) | ||
-option(OPENMC_USE_LIBMESH "Enable support for libMesh unstructured mesh tallies" OFF) | ||
-option(OPENMC_USE_MPI "Enable MPI" OFF) | ||
-option(OPENMC_USE_MCPL "Enable MCPL" OFF) | ||
-option(OPENMC_USE_NCRYSTAL "Enable support for NCrystal scattering" OFF) | ||
-option(OPENMC_USE_UWUW "Enable UWUW" OFF) | ||
+option(OPENMC_USE_OPENMP "Enable shared-memory parallelism with OpenMP" ON) | ||
+option(OPENMC_BUILD_TESTS "Build tests" ON) | ||
+option(OPENMC_ENABLE_PROFILE "Compile with profiling flags" OFF) | ||
+option(OPENMC_ENABLE_COVERAGE "Compile with coverage analysis flags" OFF) | ||
+option(OPENMC_USE_DAGMC "Enable support for DAGMC (CAD) geometry" OFF) | ||
+option(OPENMC_USE_LIBMESH "Enable support for libMesh unstructured mesh tallies" OFF) | ||
+option(OPENMC_USE_MPI "Enable MPI" OFF) | ||
+option(OPENMC_USE_MCPL "Enable MCPL" OFF) | ||
+option(OPENMC_USE_NCRYSTAL "Enable support for NCrystal scattering" OFF) | ||
+option(OPENMC_USE_UWUW "Enable UWUW" OFF) | ||
+option(OPENMC_CHECK_SUBMODULES "Check that submodules are available" ON) | ||
|
||
# Warnings for deprecated options | ||
foreach(OLD_OPT IN ITEMS "openmp" "profile" "coverage" "dagmc" "libmesh") | ||
@@ -238,11 +239,12 @@ | ||
endif() | ||
|
||
# Check to see if submodules exist (by checking one) | ||
-if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/pugixml/CMakeLists.txt") | ||
- message(FATAL_ERROR "The git submodules were not downloaded! GIT_SUBMODULE was \ | ||
- turned off or failed. Please update submodules and try again.") | ||
+if (OPENMC_CHECK_SUBMODULES) | ||
+ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/pugixml/CMakeLists.txt") | ||
+ message(FATAL_ERROR "The git submodules were not downloaded! GIT_SUBMODULE was \ | ||
+ turned off or failed. Please update submodules and try again.") | ||
+ endif() | ||
endif() | ||
- | ||
#=============================================================================== | ||
# pugixml library | ||
#=============================================================================== |
49 changes: 49 additions & 0 deletions
49
easybuild/easyconfigs/x/xtensor/xtensor-0.24.7-foss-2022a.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
easyblock = 'Bundle' | ||
|
||
name = 'xtensor' | ||
version = '0.24.7' | ||
|
||
homepage = 'https://github.com/xtensor-stack/xtensor' | ||
description = "xtensor is a C++ library meant for numerical analysis with multi-dimensional array expressions." | ||
|
||
toolchain = {'name': 'foss', 'version': '2022a'} | ||
|
||
builddependencies = [ | ||
('CMake', '3.23.1'), | ||
('pybind11', '2.9.2'), | ||
] | ||
dependencies = [ | ||
('Python', '3.10.4'), | ||
('SciPy-bundle', '2022.05'), | ||
] | ||
|
||
default_easyblock = 'CMakeMake' | ||
|
||
default_component_specs = { | ||
'source_urls': ['https://github.com/xtensor-stack/%(name)s/archive/'], | ||
'sources': ['%(version)s.tar.gz'], | ||
'start_dir': '%(name)s-%(version)s', | ||
} | ||
|
||
components = [ | ||
('xtl', '0.7.5', { | ||
'checksums': ['3286fef5fee5d58f82f7b91375cd449c819848584bae9367893501114d923cbe'], | ||
}), | ||
('xsimd', '8.0.5', { | ||
'checksums': ['0e1b5d973b63009f06a3885931a37452580dbc8d7ca8ad40d4b8c80d2a0f84d7'], | ||
}), | ||
('xtensor', version, { | ||
'checksums': ['0fbbd524dde2199b731b6af99b16063780de6cf1d0d6cb1f3f4d4ceb318f3106'], | ||
}), | ||
('xtensor-python', '0.26.1', { | ||
'checksums': ['eb64155c6824be471decf93927beedae3645714c8ce92f38e037434db2c2454a'], | ||
'configopts': '-DPYTHON_EXECUTABLE=$EBROOTPYTHON/bin/python', | ||
}), | ||
] | ||
|
||
sanity_check_paths = { | ||
'files': ['include/xtensor.hpp', 'lib/pkgconfig/xsimd.pc'], | ||
'dirs': ['include/xsimd', 'include/xtensor', 'include/xtensor-python', 'include/xtl', 'lib/cmake'], | ||
} | ||
|
||
moduleclass = 'lib' |