Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
rocm_bandwidth_test
Commits
0e049601
Commit
0e049601
authored
Jul 23, 2021
by
Ramesh Errabolu
Browse files
Discard fine-grained pools that are NOT kernarg true
parent
95ee0a39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
rocm_bandwidth_test.cpp
rocm_bandwidth_test.cpp
+2
-2
rocm_bandwidth_test_topology.cpp
rocm_bandwidth_test_topology.cpp
+4
-1
No files found.
rocm_bandwidth_test.cpp
View file @
0e049601
...
@@ -815,8 +815,8 @@ RocmBandwidthTest::RocmBandwidthTest(int argc, char** argv) : BaseTest() {
...
@@ -815,8 +815,8 @@ RocmBandwidthTest::RocmBandwidthTest(int argc, char** argv) : BaseTest() {
// Initialize version of the test
// Initialize version of the test
version_
.
major_id
=
2
;
version_
.
major_id
=
2
;
version_
.
minor_id
=
5
;
version_
.
minor_id
=
6
;
version_
.
step_id
=
1
;
version_
.
step_id
=
0
;
version_
.
reserved
=
0
;
version_
.
reserved
=
0
;
// Test impact of sleep, temp code
// Test impact of sleep, temp code
...
...
rocm_bandwidth_test_topology.cpp
View file @
0e049601
...
@@ -116,7 +116,10 @@ hsa_status_t MemPoolInfo(hsa_amd_memory_pool_t pool, void* data) {
...
@@ -116,7 +116,10 @@ hsa_status_t MemPoolInfo(hsa_amd_memory_pool_t pool, void* data) {
return
HSA_STATUS_SUCCESS
;
return
HSA_STATUS_SUCCESS
;
}
}
}
else
{
}
else
{
if
(
is_fine_grained
==
false
)
{
// Skip pools that are one of the following:
// Coarse grained
// Fine grained with kernarg being false
if
((
is_fine_grained
==
false
)
||
(
is_kernarg
==
false
))
{
return
HSA_STATUS_SUCCESS
;
return
HSA_STATUS_SUCCESS
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment