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
15a8b963
Commit
15a8b963
authored
Aug 30, 2019
by
Ramesh Errabolu
Browse files
Fix access to buffers when Reverse copy is enabled
parent
d1627477
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
rocm_bandwidth_test.cpp
rocm_bandwidth_test.cpp
+5
-3
No files found.
rocm_bandwidth_test.cpp
View file @
15a8b963
...
@@ -92,10 +92,12 @@ void RocmBandwidthTest::AcquirePoolAcceses(uint32_t src_dev_idx,
...
@@ -92,10 +92,12 @@ void RocmBandwidthTest::AcquirePoolAcceses(uint32_t src_dev_idx,
hsa_device_type_t
dst_dev_type
=
agent_list_
[
dst_dev_idx
].
device_type_
;
hsa_device_type_t
dst_dev_type
=
agent_list_
[
dst_dev_idx
].
device_type_
;
if
(
src_dev_type
==
HSA_DEVICE_TYPE_GPU
)
{
if
(
src_dev_type
==
HSA_DEVICE_TYPE_GPU
)
{
AcquireAccess
(
src_agent
,
dst
);
AcquireAccess
(
src_agent
,
dst
);
}
else
if
(
dst_dev_type
==
HSA_DEVICE_TYPE_GPU
)
{
}
if
(
dst_dev_type
==
HSA_DEVICE_TYPE_GPU
)
{
AcquireAccess
(
dst_agent
,
src
);
AcquireAccess
(
dst_agent
,
src
);
}
}
return
;
return
;
}
}
...
@@ -789,7 +791,7 @@ RocmBandwidthTest::RocmBandwidthTest(int argc, char** argv) : BaseTest() {
...
@@ -789,7 +791,7 @@ 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
=
3
;
version_
.
minor_id
=
3
;
version_
.
step_id
=
4
;
version_
.
step_id
=
5
;
version_
.
reserved
=
0
;
version_
.
reserved
=
0
;
bw_iter_cnt_
=
getenv
(
"ROCM_BW_ITER_CNT"
);
bw_iter_cnt_
=
getenv
(
"ROCM_BW_ITER_CNT"
);
...
...
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