From 9210cefb36868e201f7e0c8b84e4ee4f91b5432b Mon Sep 17 00:00:00 2001 From: nnorwitz Date: Wed, 5 Apr 2017 10:57:50 -0700 Subject: [PATCH] Use %% for inline assembly rather than % so this compiles with clang. --- modules/cudev/include/opencv2/cudev/warp/warp.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cudev/include/opencv2/cudev/warp/warp.hpp b/modules/cudev/include/opencv2/cudev/warp/warp.hpp index 6860ccf4af..db096c5610 100644 --- a/modules/cudev/include/opencv2/cudev/warp/warp.hpp +++ b/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; }