Compiling CUDA with clang

后端 未结 2 746
谎友^
谎友^ 2020-12-11 10:02

I am new to LLVM. I heard that clang supports CUDA. How do I compile CUDA using clang? Do I have to make some config changes or include any specific header files? I couldn\'

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-11 10:44

    2016-05-01 Update: clang now supports CUDA. See @rivanvx' answer.

    The CUDA compiler is based on LLVM. Clang, though also based on LLVM, does not support CUDA.

提交回复
热议问题