Skip to content

Commit 85edc1b

Browse files
authored
Merge branch 'master' into intel-gpu
2 parents 98036e8 + ab146e9 commit 85edc1b

6 files changed

Lines changed: 3 additions & 42 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ exit 0
734734
target_compile_options(${a_target} PRIVATE -fopenmp)
735735
target_link_options(${a_target} PRIVATE -fopenmp)
736736
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang")
737-
target_compile_options(${a_target} PRIVATE -fopenmp --offload-arch=gfx90a -fopenmp-target-fast -fopenmp-assume-threads-oversubscription -fopenmp-assume-teams-oversubscription)
737+
target_compile_options(${a_target} PRIVATE -fopenmp --offload-arch=gfx90a -O3 -fopenmp-assume-threads-oversubscription -fopenmp-assume-teams-oversubscription)
738738
target_link_options(${a_target} PRIVATE -fopenmp --offload-arch=gfx90a -flto-partitions=${MFC_BUILD_JOBS})
739739
endif()
740740
endif()

mfc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ if [ $code -ne 0 ]; then
103103
fi
104104

105105
# Deactivate the Python virtualenv in case the user "source"'d this script.
106-
# In prebuilt/spack mode the venv was never created, so there's nothing to deactivate.
106+
# Guard against the case where no venv was activated (e.g. system Python).
107107
if type deactivate > /dev/null 2>&1; then
108108
log "(venv) Exiting the$MAGENTA Python$COLOR_RESET virtual environment."
109109
deactivate

toolchain/bootstrap/python.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ MFC_PYTHON_MIN_MAJOR=3
44
MFC_PYTHON_MIN_MINOR=9
55
MFC_PYTHON_MIN_STR="$MFC_PYTHON_MIN_MAJOR.$MFC_PYTHON_MIN_MINOR"
66

7-
# Prebuilt/spack mode: skip the venv entirely. The caller must already have
8-
# python3 + the MFC toolchain deps + the `mfc` package importable on PYTHONPATH.
9-
if [ -n "${MFC_PREBUILT_PREFIX:-}" ]; then
10-
return 0
11-
fi
12-
137
is_python_compatible() {
148
if ! ${1:-python3} -c "import sys; exit(int(not (sys.version_info[0]==$MFC_PYTHON_MIN_MAJOR and sys.version_info[1] >= $MFC_PYTHON_MIN_MINOR)))"; then
159
return 1

toolchain/mfc/build.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from rich.text import Text
1515

1616
from .case import Case
17-
from .common import MFCException, create_directory, debug, delete_directory, format_list_to_string, get_prebuilt_prefix, system
17+
from .common import MFCException, create_directory, debug, delete_directory, format_list_to_string, system
1818
from .printer import cons
1919
from .run import input
2020
from .state import ARG, CFG, gpuConfigOptions
@@ -336,9 +336,6 @@ def get_home_dirpath(self) -> str:
336336
return os.sep.join([os.getcwd()])
337337

338338
def get_install_binpath(self, case: Case) -> str:
339-
prebuilt = get_prebuilt_prefix()
340-
if prebuilt:
341-
return os.sep.join([prebuilt, "bin", self.name])
342339
# <root>/install/<slug>/bin/<target>
343340
return os.sep.join([self.get_install_dirpath(case), "bin", self.name])
344341

@@ -362,9 +359,6 @@ def is_buildable(self) -> bool:
362359
if ARG("no_build"):
363360
return False
364361

365-
if get_prebuilt_prefix():
366-
return False
367-
368362
if self.isDependency and ARG(f"sys_{self.name}", False):
369363
return False
370364

toolchain/mfc/cli/commands.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,6 @@
274274
default=False,
275275
dest="no_build",
276276
),
277-
Argument(
278-
name="prebuilt-prefix",
279-
help="Use prebuilt MFC binaries from <PREFIX>/bin (e.g. a Spack install prefix). Implies --no-build. Also settable via MFC_PREBUILT_PREFIX.",
280-
type=str,
281-
default=None,
282-
metavar="PREFIX",
283-
dest="prebuilt_prefix",
284-
),
285277
Argument(
286278
name="wait",
287279
help="(Batch) Wait for the job to finish.",
@@ -445,14 +437,6 @@
445437
default=False,
446438
dest="no_build",
447439
),
448-
Argument(
449-
name="prebuilt-prefix",
450-
help="Use prebuilt MFC binaries from <PREFIX>/bin (e.g. a Spack install prefix). Implies --no-build. Also settable via MFC_PREBUILT_PREFIX.",
451-
type=str,
452-
default=None,
453-
metavar="PREFIX",
454-
dest="prebuilt_prefix",
455-
),
456440
Argument(
457441
name="no-examples",
458442
help="Do not test example cases.",

toolchain/mfc/common.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,6 @@ def debug(msg: str):
4242
MFC_BENCH_FILEPATH = abspath(join(MFC_TOOLCHAIN_DIR, "bench.yaml"))
4343
MFC_MECHANISMS_DIR = abspath(join(MFC_TOOLCHAIN_DIR, "mechanisms"))
4444

45-
46-
def get_prebuilt_prefix() -> typing.Optional[str]:
47-
# Returns the prebuilt install prefix when MFC is run against pre-built binaries
48-
# (e.g. a Spack install). The CLI flag --prebuilt-prefix takes precedence over the
49-
# MFC_PREBUILT_PREFIX environment variable. Returns None when running normally.
50-
from .state import ARG
51-
52-
cli = ARG("prebuilt_prefix", "") or None
53-
return cli or os.environ.get("MFC_PREBUILT_PREFIX") or None
54-
55-
5645
MFC_LOGO = """\
5746
.=++*: -+*+=.
5847
:+ -*- == =* .

0 commit comments

Comments
 (0)