Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ ignore:
- "libensemble/tools/forkable_pdb.py"
- "libensemble/tools/live_data/*"
- "libensemble/sim_funcs/executor_hworld.py"
- "libensemble/gen_funcs/persistent_ax_multitask.py"
- "libensemble/gen_funcs/persistent_gpCAM.py"
- "libensemble/gen_funcs/persistent_tasmanian.py"
2 changes: 0 additions & 2 deletions libensemble/resources/platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,10 @@ def known_envs():
logger.manager_warning("Perlmutter detected, but no compute partition detected. Are you on login nodes?")
if os.environ.get("SLURM_CLUSTER_NAME") == "lumi":
partition = os.environ.get("SLURM_JOB_PARTITION")
print(f"Lumi partition: {partition}")
if not partition:
logger.manager_warning("LUMI detected, but no compute partition detected. Are you on login nodes?")
if partition and partition.endswith("-g"):
name = "lumi_g"
print(f"Lumi GPU detected: {name}")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

else:
name = "lumi"
return name
Expand Down
15 changes: 15 additions & 0 deletions libensemble/tests/unit_tests/test_ufunc_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,20 @@ def tupilize(arg1, arg2):
simrunner.shutdown()


def test_persis_info_from_none():
calc_in, sim_specs, gen_specs = get_ufunc_args()

def tupilize(arg1, arg2):
return (arg1, arg2)

sim_specs["sim_f"] = tupilize
simrunner = Runner(sim_specs)
libE_info = {"H_rows": np.array([2, 3, 4]), "workerID": 1, "comm": "fakecomm"}

result = simrunner.run(calc_in, {"libE_info": libE_info, "persis_info": None, "tag": 1})
assert result == (calc_in, {})


@pytest.mark.extra
def test_globus_compute_runner_init():
calc_in, sim_specs, gen_specs = get_ufunc_args()
Expand Down Expand Up @@ -122,6 +136,7 @@ def test_globus_compute_runner_fail():
if __name__ == "__main__":
test_normal_runners()
test_thread_runners()
test_persis_info_from_none()
test_globus_compute_runner_init()
test_globus_compute_runner_pass()
test_globus_compute_runner_fail()
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classifiers = [
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
]
version = "1.5.0"
dynamic = ["version"]

[project.urls]
Documentation = "https://libensemble.readthedocs.io/en/main/"
Expand All @@ -45,6 +45,9 @@ requires = ["setuptools", "wheel", "pip>=24.3.1,<26", "setuptools>=75.1.0,<79",
where = ["."]
include = ["libensemble*"]

[tool.setuptools.dynamic]
version = {attr = "libensemble.version.__version__"}

[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["osx-arm64", "linux-64", "osx-64"]
Expand Down
Loading