generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 521
Fix to execute efa tests on mainline #1083
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1b8b92c
fix to execute efa tests
jeet4320 f602a87
efa flag true
jeet4320 b2ffff7
revert code
jeet4320 cfe4d85
revert code
jeet4320 16b25e5
new changes
jeet4320 248b340
run eks and fix efa
jeet4320 b63d910
remove code
jeet4320 70d081e
add efa marker to inference
jeet4320 fecd4f1
add efa marker to inference
jeet4320 bef800f
testtfs conftest
jeet4320 bd7d929
testtfs conftest
jeet4320 c18b01c
use efa for training
jeet4320 d847879
use efa for training
jeet4320 2ace3c0
new changes
jeet4320 1463031
new changes
jeet4320 2a69536
new changes
jeet4320 80dca54
new changes
jeet4320 944d740
new changes
jeet4320 2480dc0
not efa
jeet4320 390efcb
revert
jeet4320 d1daee1
Merge branch 'master' into add-efa-flag
jeet4320 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,8 @@ spec: | |
| - -x | ||
| - LD_LIBRARY_PATH | ||
| - -x | ||
| - RDMAV_FORK_SAFE=1 | ||
| - -x | ||
| - PATH | ||
| - -x | ||
| - NCCL_SOCKET_IFNAME=eth0 | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -139,10 +139,15 @@ def generate_sagemaker_pytest_cmd(image, sagemaker_test_type): | |
| local_test_report = os.path.join(UBUNTU_HOME_DIR, "test", f"{job_type}_{tag}_sm_local.xml") | ||
| is_py3 = " python3 -m " | ||
|
|
||
| efa_flag = "" | ||
| if job_type == "training" and (framework_major_version == "tensorflow" or framework == "pytorch"): | ||
| efa_dedicated = os.getenv("EFA_DEDICATED", "False").lower() == "true" | ||
| efa_flag = '--efa' if efa_dedicated else '-m not efa' | ||
|
|
||
| remote_pytest_cmd = ( | ||
| f"pytest -rA {integration_path} --region {region} --processor {processor} {docker_base_arg} " | ||
| f"{sm_remote_docker_base_name} --tag {tag} {framework_version_arg} {framework_version} " | ||
| f"{aws_id_arg} {account_id} {instance_type_arg} {instance_type} --junitxml {test_report}" | ||
| f"{aws_id_arg} {account_id} {instance_type_arg} {instance_type} {efa_flag} --junitxml {test_report}" | ||
|
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. efa is just needed for SM training remote tests |
||
| ) | ||
|
|
||
| if processor == "eia" : | ||
|
|
||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was added for local SM tests, but we dont have EFA for local SM tests