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
composable_kernel
Commits
4a029960
Commit
4a029960
authored
Oct 06, 2023
by
Adam Osewski
Browse files
Force use of SGPR.
parent
36b01d72
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
test/work_scheduling/test_strided_reduction_tile_loop.cpp
test/work_scheduling/test_strided_reduction_tile_loop.cpp
+6
-2
No files found.
test/work_scheduling/test_strided_reduction_tile_loop.cpp
View file @
4a029960
...
...
@@ -140,8 +140,9 @@ __global__ void grouped_gemm_naive_strided_tile_loop_reduce(const GemmArgDesc* p
partial_result
;
}
const
index_t
output_tile_idx
=
b2c_tile_map
.
GetOutputTileIdx
();
const
index_t
output_tile_idx_offset
=
offset
/
k_batch
;
const
index_t
output_tile_idx
=
__builtin_amdgcn_readfirstlane
(
b2c_tile_map
.
GetOutputTileIdx
());
const
index_t
output_tile_idx_offset
=
__builtin_amdgcn_readfirstlane
(
offset
/
k_batch
);
work_scheduler
.
FlagFinished
(
k_batch
,
output_tile_idx
,
output_tile_idx_offset
);
...
...
@@ -422,6 +423,7 @@ TEST(TestStridedReductionTileLoop, GroupedGemm_CrossGroups_CrossK_TilePerBlockLT
constexpr
index_t
BlockSize
=
256
;
const
index_t
kbatch
=
5
;
const
index_t
grid_size
=
7
;
// tilse_per_block = 3
std
::
vector
<
index_t
>
Ms
(
2
,
MPerBlock
*
2
);
std
::
vector
<
index_t
>
Ns
(
2
,
NPerBlock
);
...
...
@@ -439,6 +441,7 @@ TEST(TestStridedReductionTileLoop, GroupedGemm_CrossGroups_CrossK_TilePerBlockGT
constexpr
index_t
BlockSize
=
256
;
const
index_t
kbatch
=
5
;
const
index_t
grid_size
=
5
;
// tiles_per_block = 8
std
::
vector
<
index_t
>
Ms
(
2
,
MPerBlock
*
2
);
std
::
vector
<
index_t
>
Ns
(
2
,
NPerBlock
*
2
);
...
...
@@ -457,6 +460,7 @@ TEST(TestStridedReductionTileLoop, GroupedGemm_CrossGroups_CrossK_TilePerBlockGT
const
index_t
kbatch
=
5
;
// The covered number of tiles is more than actual data tiles.
const
index_t
grid_size
=
6
;
// tilse_per_block = 7
std
::
vector
<
index_t
>
Ms
(
2
,
MPerBlock
*
2
);
std
::
vector
<
index_t
>
Ns
(
2
,
NPerBlock
*
2
);
...
...
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