Commit 9210cefb authored by nnorwitz's avatar nnorwitz Committed by GitHub

Use %% for inline assembly rather than % so this compiles with clang.

parent fd93ae08
...@@ -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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment