Skip to content

Commit e147b7b

Browse files
committed
Revert changes to spack stack setup-meta-modules
1 parent 20db4b8 commit e147b7b

File tree

6 files changed

+0
-45
lines changed

6 files changed

+0
-45
lines changed

spack-ext/lib/jcsda-emc/spack-stack/stack/meta_modules.py

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
import logging
55
import os
66
import re
7-
import shutil
87
import sys
98

109
import spack
1110
import spack.environment as ev
12-
from spack.version import from_string
1311

1412
# logging.basicConfig(level=logging.INFO)
1513
logging.basicConfig(format="%(message)s", level=logging.DEBUG)
@@ -47,7 +45,6 @@
4745
"F77": "",
4846
"FC": "",
4947
"COMPFLAGS": "",
50-
#"COMPCONFIG": "",
5148
"ENVVARS": "",
5249
"MPICC": "",
5350
"MPICXX": "",
@@ -57,19 +54,6 @@
5754
"PYTHONROOT": "",
5855
}
5956

60-
# Compiler configuration templates (if applicable).
61-
# First key is compiler name (lowercase) as known to spack,
62-
# second key is compiler version in a way that spack understands:
63-
# '2025.1.0', '2025:', ':2026', '2025:2026', ...
64-
COMPILER_CONFIGURATION_TEMPLATES = {
65-
"oneapi": {
66-
"2025:" : {
67-
"ICXCFG" : os.path.join(this_script_dir, "templates/icx.cfg"),
68-
"ICPXCFG" : os.path.join(this_script_dir, "templates/icpx.cfg"),
69-
"IFXCFG" : os.path.join(this_script_dir, "templates/ifx.cfg"),
70-
},
71-
},
72-
}
7357

7458
def versiontuple(v):
7559
"""Version comparison without relying on packaging module"""
@@ -532,26 +516,6 @@ def custom_sort_key(entry):
532516
substitutes["MODULEPATHS"] = substitutes["MODULEPATHS"].rstrip("\n")
533517
logging.debug(" ... ... MODULEPATHS : {}".format(substitutes["MODULEPATHS"]))
534518

535-
## If there are configuration files for this compiler and version,
536-
## copy those and apply any environment settings in the modulefile
537-
#if compiler_name in COMPILER_CONFIGURATION_TEMPLATES.keys():
538-
# for version_string in COMPILER_CONFIGURATION_TEMPLATES[compiler_name].keys():
539-
# target_versions = from_string(version_string)
540-
# if from_string(compiler_version).satisfies(target_versions):
541-
# config_dict = COMPILER_CONFIGURATION_TEMPLATES[compiler_name][version_string]
542-
# for (env_name, source_file) in config_dict.items():
543-
# target_file = os.path.join(
544-
# install_dir,
545-
# compiler_name,
546-
# compiler_version,
547-
# os.path.split(source_file)[1]
548-
# )
549-
# shutil.copy(source_file, target_file)
550-
# substitutes["COMPCONFIG"] += setenv_command(
551-
# module_choice, env_name, target_file
552-
# )
553-
# substitutes["COMPCONFIG"].rstrip("\n")
554-
555519
# Read compiler template into module_content string
556520
with open(COMPILER_TEMPLATES[module_choice]) as f:
557521
module_content = f.read()

spack-ext/lib/jcsda-emc/spack-stack/stack/templates/compiler

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ setenv {SERIAL_CXX} {@CXX@}
3232
@COMPFLAGS@
3333
@ENVVARS@
3434

35-
# compiler configuration files
36-
# @COMPCONFIG@
37-
3835
proc ModulesHelp {} {
3936
puts -nonewline stderr "This modulefile defines the compiler meta module for spack-stack"
4037
}

spack-ext/lib/jcsda-emc/spack-stack/stack/templates/compiler.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ setenv("SERIAL_CXX", "@CXX@")
3636
@COMPFLAGS@
3737
@ENVVARS@
3838

39-
-- compiler configuration files
40-
-- @COMPCONFIG@
41-
4239
-- module show info
4340
whatis("Name: " .. pkgName)
4441
whatis("Version: " .. pkgVersion)

spack-ext/lib/jcsda-emc/spack-stack/stack/templates/icpx.cfg

Lines changed: 0 additions & 1 deletion
This file was deleted.

spack-ext/lib/jcsda-emc/spack-stack/stack/templates/icx.cfg

Lines changed: 0 additions & 1 deletion
This file was deleted.

spack-ext/lib/jcsda-emc/spack-stack/stack/templates/ifx.cfg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)