Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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!

share|improve this answer

Your Answer


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.