Use %% for inline assembly rather than % so this compiles with clang.

pull/8525/head
nnorwitz 8 years ago committed by GitHub
parent fd93ae08b6
commit 9210cefb36
  1. 2
      modules/cudev/include/opencv2/cudev/warp/warp.hpp

@ -64,7 +64,7 @@ struct Warp
__device__ __forceinline__ static uint laneId()
{
uint ret;
asm("mov.u32 %0, %laneid;" : "=r"(ret));
asm("mov.u32 %0, %%laneid;" : "=r"(ret));
return ret;
}

Loading…
Cancel
Save