Skip to content

Commit 3020229

Browse files
JonChesterfieldtstellar
authored andcommitted
[clang] Replace asm with __asm__ in cuda header
Asm is a gnu extension for C, so at present -fopenmp -std=c99 and similar fail to compile on nvptx, bug 51344 Changing to `__asm__` or `__asm` works for openmp, all three appear to work for cuda. Suggesting `__asm__` here as `__asm` is used by MSVC with different syntax, so this should make for better error diagnostics if the header is passed to a compiler other than clang. Reviewed By: tra, emankov Differential Revision: https://reviews.llvm.org/D107492 (cherry picked from commit 509854b)
1 parent d694430 commit 3020229

File tree

1 file changed

+174
-102
lines changed

1 file changed

+174
-102
lines changed

0 commit comments

Comments
 (0)