mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 20:09:23 +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()
|
||||
{
|
||||
uint ret;
|
||||
asm("mov.u32 %0, %laneid;" : "=r"(ret));
|
||||
asm("mov.u32 %0, %%laneid;" : "=r"(ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user