Trying to compile cuda Sample Programms

I am trying to compile the cuda sample kit using clang. I know that if I can compile it using the make command, it will directly compile and I have done that too. Bu I want to compile it using clang. Is there any way to do it ?

https://llvm.org/docs/CompileCudaWithLLVM.html

But sir, Some of the programs need GL and Graphics Libraries, So is it possible to compile them using clang ?

That strikes me as a different question. I don’t really know why a few library calls would make a difference, but in the final analysis, I don’t know.

The clang CUDA capability is not developed, provided, or supported by NVIDIA.

Good luck!

Thank You Sir