Skip to content
Snippets Groups Projects
Commit 3bc52554 authored by Martin Lang's avatar Martin Lang
Browse files

Separate metamodules for cuda toolchains

parent 9ffc43e0
No related branches found
No related tags found
1 merge request!1Code review of main
Pipeline #561795 failed
......@@ -430,6 +430,7 @@ def generate_meta_modules(
"cmake",
"ninja",
"gsl",
"cuda",
]
toolchain_pre = [] # collect packages for hierarchy: compilers and mpi
......@@ -529,13 +530,20 @@ def generate_meta_modules(
Config().lmod_root / mpi_module / compiler_module / "octopus-dependencies"
)
if "cuda" in spack_environment:
min_name = "min-cuda"
full_name = "full-cuda"
else:
min_name = "min"
full_name = "full"
write_lua_module(
lmod_octopus_dependencies_root / "min.lua",
lmod_octopus_dependencies_root / f"{min_name}.lua",
octopus_dependencies_min,
help_msg="Required dependencies to compile octopus.",
)
write_lua_module(
lmod_octopus_dependencies_root / "full.lua",
lmod_octopus_dependencies_root / f"{full_name}.lua",
octopus_dependencies,
help_msg="Required and optional dependencies to compile octopus.",
default=True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment