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. On Jan 5, 2012, at 4:39 PM, Xin Tong wrote:> I do not know too much about clang, is opencl publicly supported in > clang ? how about cuda ? > > Thanks > > Xin > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
On Thu, Jan 05, 2012 at 10:39:00AM -0500, Xin Tong wrote:> I do not know too much about clang, is opencl publicly supported in > clang ? how about cuda ?Clang support OpenCL, but I doubt if there is any project working on CUDA support in Clang. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj
On Thu, Jan 5, 2012 at 11:39 PM, Xin Tong <xerox.time.tech at gmail.com> wrote:> I do not know too much about clang, is opencl publicly supported in > clang ? how about cuda ?Anton at ARM commited theOpenCL patches, already. NVIDIA did not commit the CUDA patches, yet.> > Thanks > > Xin > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> NVIDIA did not commit the CUDA patches, yet.But plans to? 2012/1/5 Liu <proljc at gmail.com>:> On Thu, Jan 5, 2012 at 11:39 PM, Xin Tong <xerox.time.tech at gmail.com> wrote: >> I do not know too much about clang, is opencl publicly supported in >> clang ? how about cuda ? > > Anton at ARM commited theOpenCL patches, already. > > NVIDIA did not commit the CUDA patches, yet. > > >> >> Thanks >> >> Xin >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
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 On 1/5/2012 10:39 AM, Xin Tong wrote:> I do not know too much about clang, is opencl publicly supported in > clang ? how about cuda ? > > Thanks > > Xin > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev