-
Notifications
You must be signed in to change notification settings - Fork 104
hipsolver & rocsolver Test for the ROCK #1585
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
+95
−1
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
fc0a0f4
HipSolver Test
subodh-dubey-amd 7a85cec
HipSolver Test
subodh-dubey-amd 554e22b
HipSolver Test
subodh-dubey-amd 48de5d5
HipSolver & Socsolver Test
subodh-dubey-amd bd7b0ee
HipSolver & Socsolver Test
subodh-dubey-amd 6704ed0
Merge branch 'main' into subodh-dubey-amd/therocktests
subodh-dubey-amd af26f84
HipSolver & Socsolver Test
subodh-dubey-amd 77fa692
Merge branch 'subodh-dubey-amd/therocktests' of github.com:ROCm/TheRo…
subodh-dubey-amd 9bf23cb
HipSolver & Socsolver Test
subodh-dubey-amd 8e145c4
HipSolver & Rocsolver Test
subodh-dubey-amd d5db030
HipSolver & Rocsolver Test
subodh-dubey-amd 7a24752
Dynamo DB as Cache
subodh-dubey-amd 86f9d20
Merge branch 'main' into subodh-dubey-amd/therocktests
subodh-dubey-amd 815b5c1
Merge remote-tracking branch 'origin/main' into subodh-dubey-amd/ther…
subodh-dubey-amd 31115ca
HipSolver & Rocsolver Test
subodh-dubey-amd 3aefdb4
HipSolver & Rocsolver Test
subodh-dubey-amd ce9b83a
HipSolver & Rocsolver Test
subodh-dubey-amd d09a1e9
HipSolver & Rocsolver Test
subodh-dubey-amd b233fd4
HipSolver & Rocsolver Test
subodh-dubey-amd b8dabcb
HipSolver & Rocsolver Test
subodh-dubey-amd e2ed085
HipSolver & Rocsolver Test
subodh-dubey-amd 7b86195
HipSolver & Rocsolver Test
subodh-dubey-amd 2841e7d
Merge branch 'main' into subodh-dubey-amd/therocktests
subodh-dubey-amd e9a3eb7
HipSolver & Rocsolver Test
subodh-dubey-amd 6426412
HipSolver & Rocsolver Test
subodh-dubey-amd e68acc7
HipSolver & Rocsolver Test
subodh-dubey-amd 16df504
HipSolver & Rocsolver Test
subodh-dubey-amd ae3e267
HipSolver & Rocsolver Test
subodh-dubey-amd 1064f99
HipSolver & Rocsolver Test
subodh-dubey-amd 986aa7d
HipSolver & Rocsolver Test
subodh-dubey-amd bea8adb
HipSolver & Rocsolver Test
subodh-dubey-amd a4426d8
HipSolver & Rocsolver Test
subodh-dubey-amd e68e28f
Merge branch 'main' into subodh-dubey-amd/therocktests
subodh-dubey-amd bd73fea
Merge branch 'main' into subodh-dubey-amd/therocktests
subodh-dubey-amd 1456659
HipSolver & Rocsolver Test
subodh-dubey-amd 6c05c63
Merge branch 'subodh-dubey-amd/therocktests' of github.com:ROCm/TheRo…
subodh-dubey-amd db8c253
Merge branch 'main' into subodh-dubey-amd/therocktests
subodh-dubey-amd d4f1871
HipSolver & Rocsolver Test
subodh-dubey-amd 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
Some comments aren't visible on the classic Files Changed page.
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
48 changes: 48 additions & 0 deletions
48
build_tools/github_actions/test_executable_scripts/test_hipsolver.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,48 @@ | ||
import logging | ||
import os | ||
import shlex | ||
import subprocess | ||
from pathlib import Path | ||
|
||
THEROCK_BIN_DIR = os.getenv("THEROCK_BIN_DIR") | ||
SCRIPT_DIR = Path(__file__).resolve().parent | ||
THEROCK_DIR = SCRIPT_DIR.parent.parent.parent | ||
|
||
PLATFORM = os.getenv("PLATFORM") | ||
AMDGPU_FAMILIES = os.getenv("AMDGPU_FAMILIES") | ||
|
||
# GTest sharding | ||
SHARD_INDEX = os.getenv("SHARD_INDEX", 1) | ||
TOTAL_SHARDS = os.getenv("TOTAL_SHARDS", 1) | ||
envion_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. | ||
envion_vars["GTEST_SHARD_INDEX"] = str(int(SHARD_INDEX) - 1) | ||
envion_vars["GTEST_TOTAL_SHARDS"] = str(TOTAL_SHARDS) | ||
|
||
logging.basicConfig(level=logging.INFO) | ||
|
||
tests_to_exclude = [ | ||
"*known_bug*", | ||
"*HEEVD*float_complex*", | ||
"*HEEVJ*float_complex*", | ||
"*HEGVD*float_complex*", | ||
"*HEGVJ*float_complex*", | ||
"*HEEVDX*float_complex*", | ||
"*SYTRF*float_complex*", | ||
"*HEEVD*double_complex*", | ||
"*HEEVJ*double_complex*", | ||
"*HEGVD*double_complex*", | ||
"*HEGVJ*double_complex*", | ||
"*HEEVDX*double_complex*", | ||
"*SYTRF*double_complex*", | ||
] | ||
|
||
exclusion_list = ":".join(tests_to_exclude) | ||
|
||
cmd = [ | ||
f"{THEROCK_BIN_DIR}/hipsolver-test", | ||
f"--gtest_filter=-{exclusion_list}", | ||
] | ||
|
||
logging.info(f"++ Exec [{THEROCK_DIR}]$ {shlex.join(cmd)}") | ||
subprocess.run(cmd, cwd=THEROCK_DIR, check=True, env=envion_vars) |
28 changes: 28 additions & 0 deletions
28
build_tools/github_actions/test_executable_scripts/test_rocsolver.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,28 @@ | ||
import logging | ||
import os | ||
import shlex | ||
import subprocess | ||
from pathlib import Path | ||
|
||
THEROCK_BIN_DIR = os.getenv("THEROCK_BIN_DIR") | ||
OUTPUT_ARTIFACTS_DIR = os.getenv("OUTPUT_ARTIFACTS_DIR") | ||
SCRIPT_DIR = Path(__file__).resolve().parent | ||
THEROCK_DIR = SCRIPT_DIR.parent.parent.parent | ||
|
||
logging.basicConfig(level=logging.INFO) | ||
|
||
# GTest sharding | ||
SHARD_INDEX = os.getenv("SHARD_INDEX", 1) | ||
TOTAL_SHARDS = os.getenv("TOTAL_SHARDS", 1) | ||
envion_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. | ||
envion_vars["GTEST_SHARD_INDEX"] = str(int(SHARD_INDEX) - 1) | ||
envion_vars["GTEST_TOTAL_SHARDS"] = str(TOTAL_SHARDS) | ||
|
||
cmd = [ | ||
f"{THEROCK_BIN_DIR}/rocsolver-test", | ||
"--gtest_filter=*known_bug*", | ||
] | ||
|
||
logging.info(f"++ Exec [{THEROCK_DIR}]$ {shlex.join(cmd)}") | ||
subprocess.run(cmd, cwd=THEROCK_DIR, check=True, env=envion_vars) |
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.