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?

  • 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

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:


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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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