0

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?

2
  • Editing the above to include more specifics.
    – Jack
    Feb 7, 2013 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
    – Jack
    Feb 7, 2013 at 20:36

1 Answer 1

2

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!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .