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
7f817fa5
"vscode:/vscode.git/clone" did not exist on "414dc11970d81f85f847e4c2ffff99546fcaa248"
Commit
7f817fa5
authored
Apr 08, 2022
by
dinggy
Browse files
Update rocm_bandwidth_test.cpp
parent
bb2f526b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
872 additions
and
872 deletions
+872
-872
rocm_bandwidth_test.cpp
rocm_bandwidth_test.cpp
+872
-872
No files found.
rocm_bandwidth_test.cpp
View file @
7f817fa5
...
@@ -333,7 +333,7 @@ void RocmBandwidthTest::WaitForCopyCompletion(vector<hsa_signal_t>& signal_list)
...
@@ -333,7 +333,7 @@ void RocmBandwidthTest::WaitForCopyCompletion(vector<hsa_signal_t>& signal_list)
uint32_t
size
=
signal_list
.
size
();
uint32_t
size
=
signal_list
.
size
();
for
(
uint32_t
idx
=
0
;
idx
<
size
;
idx
++
)
{
for
(
uint32_t
idx
=
0
;
idx
<
size
;
idx
++
)
{
hsa_signal_t
signal
=
signal_list
[
idx
];
hsa_signal_t
signal
=
signal_list
[
idx
];
while
(
hsa_signal_wait_acquire
(
signal
,
HSA_SIGNAL_CONDITION_LT
,
while
(
hsa_signal_wait_
sc
acquire
(
signal
,
HSA_SIGNAL_CONDITION_LT
,
1
,
uint64_t
(
-
1
),
policy
));
1
,
uint64_t
(
-
1
),
policy
));
}
}
}
}
...
@@ -349,7 +349,7 @@ void RocmBandwidthTest::copy_buffer(void* dst, hsa_agent_t dst_agent,
...
@@ -349,7 +349,7 @@ void RocmBandwidthTest::copy_buffer(void* dst, hsa_agent_t dst_agent,
ErrorCheck
(
err_
);
ErrorCheck
(
err_
);
// Wait for the forward copy operation to complete
// Wait for the forward copy operation to complete
while
(
hsa_signal_wait_acquire
(
signal
,
HSA_SIGNAL_CONDITION_LT
,
1
,
while
(
hsa_signal_wait_
sc
acquire
(
signal
,
HSA_SIGNAL_CONDITION_LT
,
1
,
uint64_t
(
-
1
),
HSA_WAIT_STATE_ACTIVE
));
uint64_t
(
-
1
),
HSA_WAIT_STATE_ACTIVE
));
}
}
...
...
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