Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7876 Discussions

using cuda with icc, and a kernel compiled with icc

Has anyone done this?

I have messed around with the search function, and searched for "icc cuda", but I got nothing relevent. I don't think I even got threads, it looked like a bunchc of press releases.

Is there a way for me to search the forums for a phrase like, "icc kernel cuda"
0 Kudos
2 Replies

Device code (that is what kernels actually are) can't be compiled with anything except nvcc. I guess your question is actually about host code compilation ... if so, it is possible to try to direct the nvcc to icc using -ccbin nvcc key - but I have no ideas what results you will have :-)

My compilation process is rather straightforward: *.cu files are compiled with nvcc and msvc, rest code is compiled with icc.

Hope this helps.
0 Kudos
kernel is ambiguous in this context.
In order to installl cuda on a Linux machine, one must compile the device driver for the Nvidia card, with the same compiler, and the same header files which were used to create the kernel for the Linux operating system.

LinuxDna, has tweaked the linux kernel source code so that one can compile the Linux kernel with the Intel compiler. The have documented enormous increases in speed. For example, for small context switches, the Intel compiled Linux kernel is 4 times faster than the gcc compiled Linux kernel.

I was wanting to:
1) compile the Linux kernel (tweaked ala LinuxDNA) with the intel compiler
2) compile the Nvidia device driver with Icc
3) Run the Linux kernel which I just compiled with the Nvidia device driver wich I just compiled, to run Cuda

I was wondering if anyone has done this before?

For people concerned with speed, this seems like a really good idea.

Sorry for the confusion over wording.

Thanks in Advance,

0 Kudos