LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   How to install Cuda/OpenCL nvcc compiler for PCLinuxOS? (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/how-to-install-cuda-opencl-nvcc-compiler-for-pclinuxos-899947/)

Greatwolf 08-28-2011 04:31 PM

How to install Cuda/OpenCL nvcc compiler for PCLinuxOS?
 
I'm having trouble getting this setup under pclinuxos(2011) distro. Basically, I already have the proprietary nvidia drivers setup and working for xserver. I also have nvidia-current-cuda-opencl (CUDA and OpenCL libraries) and nvidia-current-devel installed from synaptic package manager. However, I can't locate the nvcc compiler anywhere nor are there any OpenCL/Cl.h header files to be found.

Anyone have any idea why these crucial development files aren't present? Is there another install package I need to get? I need these for getting cpyrit-cuda to build -- needless to say without the headers and nvcc cuda compiler this won't work.

Edit: I just realized I posted in the wrong section shortly after hitting the 'post' button. Can someone please move this or is there a way for me to delete and repost?

knudfl 08-29-2011 03:10 AM

Moving the post to "Software" : Use the 'Report' button, and ask for the move.
Quote:

... why these crucial development files aren't present ?
Storage space, money. Very few people would use a package.
Most may prefer the latest source / installer from Nvidia. ?
( 12 nvcc threads only at LQ.)
Mandriva supplies nvcc : nvidia-cuda-toolkit-devel.
All other Linux OS : No nvcc , AFAIK.

The package is very easy to build on PCLinuxOS (2010) :
ftp://ftp.sunet.se/pub/Linux/distrib...0.17-1.src.rpm
> nvidia-cuda-toolkit-4.0.17-1.src.rpm : 331 MB.
The SRC RPM is actually two installers (One 32bit, one 64bit), 4 files total.

$ rpmbuild -bb nvidia-cuda-toolkit.spec
3 packages are created : ( Total 221 MB )
nvidia-cuda-toolkit-4.0.17-1pclos2010.i586.rpm
nvidia-cuda-toolkit-devel-4.0.17-1pclos2010.i586.rpm
nvidia-compute-profiler-4.0.17-1pclos2010.i586.rpm

..


All times are GMT -5. The time now is 08:02 PM.