Skip to content

Commit 7308d74

Browse files
src: gpu: ocl: fix i4 blocked layout check
1 parent c6d960d commit 7308d74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gpu/ocl/ref_reorder.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ status_t ref_reorder_t::pd_t::init_conf(engine_t *engine) {
4141
if (!IMPLICATION(
4242
utils::one_of(src_mdw.data_type(), data_type::s4, data_type::u4)
4343
|| utils::one_of(dst_mdw.data_type(), data_type::s4,
44-
data_type::s4),
44+
data_type::u4),
4545
dst_mdw.is_plain() && src_mdw.is_plain()))
4646
return status::unimplemented;
4747

@@ -116,7 +116,7 @@ status_t ref_reorder_t::pd_t::init_kernel_ctx(
116116

117117
int dst_contig_dim = -1;
118118
if (dst_blk.inner_nblks > 0)
119-
dst_contig_dim = dst_blk.inner_blks[0];
119+
dst_contig_dim = dst_blk.inner_idxs[0];
120120
else
121121
for (int i = 0; i < dst_md()->ndims; i++)
122122
if (dst_blk.strides[i] == 1) dst_contig_dim = i;

0 commit comments

Comments
 (0)