-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Your Name
committed
Oct 18, 2024
1 parent
baf5304
commit 3f57be8
Showing
7 changed files
with
163 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"""This file is generated, do not modify""" | ||
|
||
__tag__ = "v1.0.0_RC1-13-gde92a7e" | ||
__commit__ = "de92a7ea9dea1da24e8105e4566d5e6daef8464c" | ||
__date__ = "2024-10-03 15:48:10 +0000" | ||
__tag__ = "v1.0.0_RC1-17-gbaf5304" | ||
__commit__ = "baf53044e78d0989600359e9496e9aae682bf640" | ||
__date__ = "2024-10-10 16:12:31 +0000" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
|
||
|
||
|
||
|
||
from milabench.system import multirun, build_system_config, enable_offline, option, apply_system, SizerOptions | ||
|
||
from milabench.testing import official_config | ||
|
||
|
||
def test_system_matrix(): | ||
with enable_offline(True): | ||
sys = build_system_config(official_config("examples/system")) | ||
|
||
n = 0 | ||
for name, conf in multirun(): | ||
print(name, conf) | ||
n += 1 | ||
|
||
assert n == 39 | ||
|
||
|
||
def test_apply_system_matrix(): | ||
with enable_offline(True): | ||
sys = build_system_config(official_config("examples/system")) | ||
|
||
for name, conf in multirun(): | ||
with apply_system(conf): | ||
|
||
# Apply system worked and changed the config | ||
for k, v in conf.items(): | ||
assert option(k, lambda x: x) == v | ||
|
||
|
||
|
||
if __name__ == "__main__": | ||
test_apply_system_matrix() |