Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm in much the same boat as PeterDC, who asked:

How can I get nVidia CUDA or OpenCL working on a laptop with nVidia discrete card/Intel Integrated Graphics?

I've installed the toolkit & the samples, but cannot run make in the samples directory. When I try, I get:

make[1]: Entering directory `/usr/local/cuda-5.0/samples/0_Simple/simpleVoteIntrinsics'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/cuda-5.0/samples/0_Simple/simpleVoteIntrinsics'
make[1]: Entering directory `/usr/local/cuda-5.0/samples/0_Simple/simpleMPI'
Makefile:79: *** MPI not found, not building simpleMPI..  Stop.
make[1]: Leaving directory `/usr/local/cuda-5.0/samples/0_Simple/simpleMPI'
make: *** [0_Simple/simpleMPI/Makefile.ph_build] Error 2

Does this mean I need to edit the Makefile? Is this something I'm doing wrong, or Nvidia?

share|improve this question
    
Editing the above to include more specifics. –  Jackalope Feb 7 '13 at 0:03
    
Okay, I didn't know MPI was a separate package. I got it now. The command I needed was: sudo apt-get install libcr-dev mpich2 mpich2-doc –  Jackalope Feb 7 '13 at 20:36
add comment

1 Answer 1

Ok, I got the answer to this. (New to Linux!)

I needed to install the MPI library.

The requisite command was:

sudo apt-get install libcr-dev mpich2 mpich2-doc

Then, going back to the samples directory, I entered:

make

And got the samples to build. Good luck & happy coding!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.