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

This commit is contained in:
nnorwitz 2017-04-05 10:57:50 -07:00 committed by GitHub
parent fd93ae08b6
commit 9210cefb36

View File

@ -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;
}