Use %% for inline assembly rather than % so this compiles with clang.
authornnorwitz <nnorwitz@gmail.com>
Wed, 5 Apr 2017 17:57:50 +0000 (10:57 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2017 17:57:50 +0000 (10:57 -0700)
modules/cudev/include/opencv2/cudev/warp/warp.hpp

index 6860ccf..db096c5 100644 (file)
@@ -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;
     }