-
Notifications
You must be signed in to change notification settings - Fork 248
Add rocWMMA to TheRock #1938
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
Add rocWMMA to TheRock #1938
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5fe4ce2
Add rocWMMA to cmake files
bsyrowik 09a36d8
Add artifact-rocwmma.toml and update artifact handling
bsyrowik 875dd94
Add rocWMMA testing
bsyrowik 498b2c3
Add rocWMMA patches
bsyrowik 39baa13
Update rocWMMA GPU target compatibility
bsyrowik 98004c9
Remove patches now that rocm-libraries is updated
bsyrowik c1cb86f
Update windows_support.md
bsyrowik f217dcc
Apply suggestions from code review
bsyrowik ba6606d
Lower test timeout limits to be more reasonable
bsyrowik 867413d
Update rocWMMA config
bsyrowik 0fff96b
Fix up rocWMMA TheRock options
bsyrowik d31bfd5
Fix list append
bsyrowik b40c1b3
Clean up rocWMMA options
bsyrowik 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
58 changes: 58 additions & 0 deletions
58
build_tools/github_actions/test_executable_scripts/test_rocwmma.py
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 |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| import logging | ||
| import os | ||
| import shlex | ||
| import subprocess | ||
| from pathlib import Path | ||
|
|
||
| THEROCK_BIN_DIR = os.getenv("THEROCK_BIN_DIR") | ||
| AMDGPU_FAMILIES = os.getenv("AMDGPU_FAMILIES") | ||
| platform = os.getenv("RUNNER_OS").lower() | ||
| SCRIPT_DIR = Path(__file__).resolve().parent | ||
| THEROCK_DIR = SCRIPT_DIR.parent.parent.parent | ||
|
|
||
| # GTest sharding | ||
| SHARD_INDEX = os.getenv("SHARD_INDEX", 1) | ||
| TOTAL_SHARDS = os.getenv("TOTAL_SHARDS", 1) | ||
| environ_vars = os.environ.copy() | ||
| # For display purposes in the GitHub Action UI, the shard array is 1th indexed. However for shard indexes, we convert it to 0th index. | ||
|
bsyrowik marked this conversation as resolved.
|
||
| environ_vars["GTEST_SHARD_INDEX"] = str(int(SHARD_INDEX) - 1) | ||
| environ_vars["GTEST_TOTAL_SHARDS"] = str(TOTAL_SHARDS) | ||
|
|
||
| logging.basicConfig(level=logging.INFO) | ||
|
|
||
| # If smoke tests are enabled, we run smoke tests only. | ||
| # Otherwise, we run the normal test suite | ||
| test_type = os.getenv("TEST_TYPE", "full") | ||
|
|
||
| # If there are devices for which the full set is too slow, we can | ||
| # programatically set test_type to "regression" here. | ||
|
|
||
| test_subdir = "" | ||
| timeout = "900" | ||
| if test_type == "smoke": | ||
| # The emulator regression tests are very fast. | ||
| # If we need something even faster we can use "/smoke" here. | ||
| test_subdir = "/regression" | ||
| timeout = "300" | ||
| elif test_type == "regression": | ||
| test_subdir = "/regression" | ||
| timeout = "300" | ||
|
|
||
| cmd = [ | ||
| "ctest", | ||
| "--test-dir", | ||
| f"{THEROCK_BIN_DIR}/rocwmma{test_subdir}", | ||
| "--output-on-failure", | ||
| "--parallel", | ||
| "8", | ||
| "--timeout", | ||
| timeout, | ||
| ] | ||
| logging.info(f"++ Exec [{THEROCK_DIR}]$ {shlex.join(cmd)}") | ||
|
|
||
| subprocess.run( | ||
| cmd, | ||
| cwd=THEROCK_DIR, | ||
| check=True, | ||
| env=environ_vars, | ||
| ) | ||
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
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 |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # rocWMMA | ||
| [components.dbg."math-libs/rocWMMA/stage"] | ||
| optional = true | ||
| [components.dev."math-libs/rocWMMA/stage"] | ||
|
bsyrowik marked this conversation as resolved.
|
||
| include = [ | ||
| "include/rocwmma/*", | ||
| ] | ||
| [components.lib."math-libs/rocWMMA/stage"] | ||
| optional = true | ||
| [components.test."math-libs/rocWMMA/stage"] | ||
|
bsyrowik marked this conversation as resolved.
|
||
| optional = true | ||
| include = [ | ||
| # Samples | ||
| "bin/simple_*", | ||
| "bin/perf_*", | ||
| "bin/hipRTC_gemm*", | ||
| # Tests | ||
| "bin/*_test*", | ||
| "bin/*-validate*", | ||
| "bin/rocwmma/CTestTestfile.cmake", | ||
| "bin/rocwmma/*/CTestTestfile.cmake", | ||
| ] | ||
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.