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
c05e10f7
"examples/hubert/vscode:/vscode.git/clone" did not exist on "9877f54491a7081266207e1a999dd47bc2bba17e"
Commit
c05e10f7
authored
Jan 26, 2023
by
Paul
Browse files
Improve vectorization
parent
7184794d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/targets/gpu/jit/fused_reduce.cpp
src/targets/gpu/jit/fused_reduce.cpp
+1
-1
No files found.
src/targets/gpu/jit/fused_reduce.cpp
View file @
c05e10f7
...
@@ -124,7 +124,7 @@ struct fused_reduce_compiler : compiler<fused_reduce_compiler>
...
@@ -124,7 +124,7 @@ struct fused_reduce_compiler : compiler<fused_reduce_compiler>
if
(
algo
==
"block"
)
if
(
algo
==
"block"
)
{
{
// Vectorize if the axis is a reduction axis
// Vectorize if the axis is a reduction axis
if
(
o
ptions
.
virtual_inputs
.
back
()
.
lens
()[
faxis
]
==
1
)
if
(
o
utput_shape
.
lens
()[
faxis
]
==
1
)
vec
=
vectorize
::
elements
(
ctx
,
faxis
,
options
.
virtual_inputs
);
vec
=
vectorize
::
elements
(
ctx
,
faxis
,
options
.
virtual_inputs
);
auto
relements
=
reduced_shape
.
elements
()
/
vec
.
size
;
auto
relements
=
reduced_shape
.
elements
()
/
vec
.
size
;
auto
block_size
=
compute_block_size
(
relements
,
256
);
auto
block_size
=
compute_block_size
(
relements
,
256
);
...
...
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