Skip to content

Commit 3311817

Browse files
author
Dmitry Razdoburdin
committed
fix for dence 32 bits
1 parent cd22e8f commit 3311817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/sycl/data/gradient_index.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void GHistIndexMatrix::Init(::sycl::queue* qu,
159159
SetIndexData<uint16_t, true>(qu, ctx, index.data<uint16_t>(), dmat);
160160
} else {
161161
CHECK_EQ(curent_bin_size, BinTypeSize::kUint32BinsTypeSize);
162-
SetIndexData<uint16_t, true>(qu, ctx, index.data<uint16_t>(), dmat);
162+
SetIndexData<uint32_t, true>(qu, ctx, index.data<uint32_t>(), dmat);
163163
}
164164
/* For sparse DMatrix we have to store index of feature for each bin
165165
in index field to chose right offset. So offset is nullptr and index is not reduced */

0 commit comments

Comments
 (0)