Skip to content

Commit 58ea73d

Browse files
committed
Disable loop unrolling in clang
Signed-off-by: Szymon Karpiński <hugo@staszic.waw.pl>
1 parent e972a93 commit 58ea73d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dali/kernels/slice/slice_gpu.cuh

+2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ __device__ void SliceFunc(OutputType *__restrict__ out, const InputType *__restr
139139
}
140140

141141
for (; offset < block_end; offset += blockDim.x * coalesced_values<OutputType>) {
142+
#ifndef __clang__
142143
#pragma unroll
144+
#endif
143145
for (uint64_t i = 0; i < coalesced_values<OutputType>; i++) {
144146
uint64_t idx = offset + i;
145147
if (idx >= block_end) break;

0 commit comments

Comments
 (0)