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

Same as 9210cefb36 but for this file too.
pull/8525/head
nnorwitz 8 years ago committed by GitHub
parent 9210cefb36
commit 24e8cd1a78
  1. 2
      modules/core/include/opencv2/core/cuda/warp.hpp

@ -64,7 +64,7 @@ namespace cv { namespace cuda { namespace device
static __device__ __forceinline__ unsigned int laneId() static __device__ __forceinline__ unsigned int laneId()
{ {
unsigned int ret; unsigned int ret;
asm("mov.u32 %0, %laneid;" : "=r"(ret) ); asm("mov.u32 %0, %%laneid;" : "=r"(ret) );
return ret; return ret;
} }

Loading…
Cancel
Save