-
Notifications
You must be signed in to change notification settings - Fork 107
Test Suite Flag --rdma-mpi
Implemented (#598)
#878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Malmahrouqi3
wants to merge
19
commits into
MFlowCode:master
Choose a base branch
from
Malmahrouqi3:rdma_mpi
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+29
−15
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
14706c2
added flag --rdma-mpi
Malmahrouqi3 0dbef83
modifications on the flag use
Malmahrouqi3 3c492d4
flag use changes
Malmahrouqi3 8e27e41
lint
Malmahrouqi3 7fe5f32
updated testing docs
Malmahrouqi3 f788dfe
RDMAP MPI added to Frontier CI
Malmahrouqi3 db9d7a0
Merge branch 'rdma_mpi' of https://github.com/mohdsaid497566/MFC-mo2 …
Malmahrouqi3 8a665b0
Merge branch 'master' into rdma_mpi
sbryngelson 6aac583
fixed stuff
efa85fb
Merge branch 'rdma_mpi' of https://github.com/mohdsaid497566/MFC-mo2 …
902b1ea
re-run with lint/format
c9b1599
removed duplicate assignment of CMD
Malmahrouqi3 7839916
redundant code
Malmahrouqi3 43dcc34
Merge branch 'master' into rdma_mpi
sbryngelson 518bf23
Merge branch 'master' into rdma_mpi
Malmahrouqi3 57b600b
Merge branch 'master' into rdma_mpi
sbryngelson 50d5aea
Merge branch 'master' into rdma_mpi
sbryngelson df29256
Merge branch 'master' into rdma_mpi
sbryngelson edbd532
Merge branch 'master' into rdma_mpi
Malmahrouqi3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -56,15 +56,19 @@ def __filter(cases_) -> typing.List[TestCase]: | |||||||||||||
if case.ppn > 1 and not ARG("mpi"): | ||||||||||||||
cases.remove(case) | ||||||||||||||
skipped_cases.append(case) | ||||||||||||||
|
||||||||||||||
|
||||||||||||||
for case in cases[:]: | ||||||||||||||
if "RDMA MPI" in case.trace and not ARG("rdma_mpi"): | ||||||||||||||
cases.remove(case) | ||||||||||||||
skipped_cases.append(case) | ||||||||||||||
|
||||||||||||||
for case in cases[:]: | ||||||||||||||
if ARG("single"): | ||||||||||||||
skip = ['low_Mach', 'Hypoelasticity', 'teno', 'Chemistry', 'Phase Change model 6' | ||||||||||||||
,'Axisymmetric', 'Transducer', 'Transducer Array', 'Cylindrical', 'HLLD', 'Example'] | ||||||||||||||
if any(label in case.trace for label in skip): | ||||||||||||||
cases.remove(case) | ||||||||||||||
|
||||||||||||||
|
||||||||||||||
if ARG("no_examples"): | ||||||||||||||
cases = [case for case in cases if not "Example" in case.trace] | ||||||||||||||
|
||||||||||||||
|
@@ -180,7 +184,11 @@ def _handle_case(case: TestCase, devices: typing.Set[int]): | |||||||||||||
cons.print(f" [bold magenta]{case.get_uuid()}[/bold magenta] SKIP {case.trace}") | ||||||||||||||
return | ||||||||||||||
|
||||||||||||||
cmd = case.run([PRE_PROCESS, SIMULATION], gpus=devices) | ||||||||||||||
if "RDMA MPI" in case.trace: | ||||||||||||||
cmd = case.run([PRE_PROCESS, SIMULATION], gpus=devices, rdma_mpi=True) | ||||||||||||||
else: | ||||||||||||||
cmd = case.run([PRE_PROCESS, SIMULATION], gpus=devices) | ||||||||||||||
Comment on lines
+187
to
+190
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] Consider consolidating the RDMA branch with the standard
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||||||
|
||||||||||||||
out_filepath = os.path.join(case.get_dirpath(), "out_pre_sim.txt") | ||||||||||||||
|
||||||||||||||
common.file_write(out_filepath, cmd.stdout) | ||||||||||||||
|
@@ -223,6 +231,9 @@ def _handle_case(case: TestCase, devices: typing.Set[int]): | |||||||||||||
|
||||||||||||||
if ARG("test_all"): | ||||||||||||||
case.delete_output() | ||||||||||||||
# if ARG("rdma_mpi"): | ||||||||||||||
# cmd = case.run([PRE_PROCESS, SIMULATION, POST_PROCESS], gpus=devices, rdma_mpi=True) | ||||||||||||||
# else: | ||||||||||||||
cmd = case.run([PRE_PROCESS, SIMULATION, POST_PROCESS], gpus=devices) | ||||||||||||||
sbryngelson marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||
out_filepath = os.path.join(case.get_dirpath(), "out_post.txt") | ||||||||||||||
common.file_write(out_filepath, cmd.stdout) | ||||||||||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.