提交 c839a2cc 编写于 作者: A Alexander Alekhin

Merge pull request #8525 from nnorwitz:master

...@@ -64,7 +64,7 @@ namespace cv { namespace cuda { namespace device ...@@ -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;
} }
......
...@@ -64,7 +64,7 @@ struct Warp ...@@ -64,7 +64,7 @@ struct Warp
__device__ __forceinline__ static uint laneId() __device__ __forceinline__ static uint laneId()
{ {
uint ret; uint ret;
asm("mov.u32 %0, %laneid;" : "=r"(ret)); asm("mov.u32 %0, %%laneid;" : "=r"(ret));
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册