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
gaoqiong
MIGraphX
Commits
7ddeb944
Commit
7ddeb944
authored
Jun 30, 2022
by
Paul
Browse files
Only run __syncthreads when there is data to preload
parent
2783c649
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/targets/gpu/kernels/include/migraphx/kernels/preload.hpp
src/targets/gpu/kernels/include/migraphx/kernels/preload.hpp
+2
-1
No files found.
src/targets/gpu/kernels/include/migraphx/kernels/preload.hpp
View file @
7ddeb944
...
@@ -186,6 +186,7 @@ __device__ auto auto_preload(index idx)
...
@@ -186,6 +186,7 @@ __device__ auto auto_preload(index idx)
{
{
return
make_transform
([
=
](
auto
f
,
auto
...
xs
)
{
return
make_transform
([
=
](
auto
f
,
auto
...
xs
)
{
auto
invoke
=
[
=
](
auto
...
ys
)
{
auto
invoke
=
[
=
](
auto
...
ys
)
{
if
constexpr
((
Bs
or
...))
__syncthreads
();
__syncthreads
();
f
(
ys
...);
f
(
ys
...);
};
};
...
...
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