clang for opencl

I do not know too much about clang, is opencl publicly supported in
clang ? how about cuda ?

Thanks

Xin

Yes. I can build OpenCL (.cl, .c, .cpp file) with clang (LLVM 3.0).
About CUDA I use NVIDIA nvcc.
I don't know if is possible to use clang for CUDA.

Luca.

Clang support OpenCL, but I doubt if there is any project working on CUDA
support in Clang.

Regards,
chenwj

I do not know too much about clang, is opencl publicly supported in
clang ? how about cuda ?

Anton@ARM commited theOpenCL patches, already.

NVIDIA did not commit the CUDA patches, yet.

NVIDIA did not commit the CUDA patches, yet.

But plans to?

Not clear.
  http://www.theregister.co.uk/2011/12/16/nvidia_llvm_cuda_app_dev/

[ Non-technical source ]

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists@gmail.com>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

NVIDIA did not commit the CUDA patches, yet.

But plans to?

I have no ideas:)

CUDA uses language extensions for its kernel functions.
These extensions are not standard C/C++ syntax.
So, by default, clang should _not_ support CUDA, unless clang's parser has been changed to accommodate those extensions.

Chuck