mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
Use %% for inline assembly rather than % so this compiles with clang.
This commit is contained in:
parent
fd93ae08b6
commit
9210cefb36
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user