Skip to content

Commit

Permalink
Remove #pragma unroll from a loop that cannot be unrolled
Browse files Browse the repository at this point in the history
Fixes "warning: loop not unrolled: the optimizer was unable
to performthe requested transformation;
the transformation might be disabled or specified
as part of an unsupported transformation ordering
[-Wpass-failed=transform-warning]"
  • Loading branch information
ex-rzr committed Feb 6, 2019
1 parent 734b83d commit 353a794
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion rocprim/include/rocprim/device/detail/device_partition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ auto partition_scatter(ValueType (&values)[ItemsPerThread],
::rocprim::syncthreads(); // sync threads to reuse shared memory

// Coalesced write from shared memory to global memory
#pragma unroll
for(unsigned int i = flat_block_thread_id; i < selected_in_block; i += BlockSize)
{
output[selected_prefix + i] = scatter_storage[i];
Expand Down

0 comments on commit 353a794

Please sign in to comment.