No MPI compiler found
The CUDA 6.0 RC [i]simpleMPI[/i] sample requires a MPI compiler and unfortunately I cannot get it to compile: [CODE]WARNING - No MPI compiler found. ----------------------------------------------------------------------------------------------- CUDA Sample "simpleMPI" cannot be built without an MPI Compiler. This will be a dry-run of the Makefile.[/CODE] I run Fedora 20 with openmpi, openmpi-devel, mpich2 and mpich2-devel installed. Any suggestions?
The CUDA 6.0 RC simpleMPI sample requires a MPI compiler and unfortunately I cannot get it to compile:

WARNING - No MPI compiler found.
-----------------------------------------------------------------------------------------------
CUDA Sample "simpleMPI" cannot be built without an MPI Compiler.
This will be a dry-run of the Makefile.

I run Fedora 20 with openmpi, openmpi-devel, mpich2 and mpich2-devel installed.

Any suggestions?

NVIDIA GM107
AMD Tahiti XT2
AMD FX-8350
Fedora 20

#1
Posted 03/12/2014 08:01 PM   
beyond just being installed, the MPI of choice has to be configured, so that for example if you do mpicxx, you will get the "mpi compiler" of choice. What happens if you do: mpicxx --version or which mpicxx If you get a "not found" type message, then see if you have an mpi-selector tool, like: mpi-selector --list If that works, then do: man mpi-selector to learn how to use it.
beyond just being installed, the MPI of choice has to be configured, so that for example if you do mpicxx, you will get the "mpi compiler" of choice.

What happens if you do:

mpicxx --version

or

which mpicxx

If you get a "not found" type message, then see if you have an mpi-selector tool, like:

mpi-selector --list

If that works, then do:

man mpi-selector

to learn how to use it.

#2
Posted 03/12/2014 08:28 PM   
[quote="txbob"]beyond just being installed, the MPI of choice has to be configured, so that for example if you do mpicxx, you will get the "mpi compiler" of choice. What happens if you do: mpicxx --version or which mpicxx If you get a "not found" type message, then see if you have an mpi-selector tool, like: mpi-selector --list If that works, then do: man mpi-selector to learn how to use it.[/quote] Currently, none of them works: [code] [root@localhost usr]# mpicxx --version bash: mpicxx: command not found... [root@localhost usr]# which mpicxx /usr/bin/which: no mpicxx in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) [root@localhost usr]# mpi-selector --list bash: mpi-selector: command not found... [/code]
txbob said:beyond just being installed, the MPI of choice has to be configured, so that for example if you do mpicxx, you will get the "mpi compiler" of choice.

What happens if you do:

mpicxx --version

or

which mpicxx

If you get a "not found" type message, then see if you have an mpi-selector tool, like:

mpi-selector --list

If that works, then do:

man mpi-selector

to learn how to use it.

Currently, none of them works:

[root@localhost usr]# mpicxx --version
bash: mpicxx: command not found...
[root@localhost usr]# which mpicxx
/usr/bin/which: no mpicxx in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@localhost usr]# mpi-selector --list
bash: mpi-selector: command not found...

NVIDIA GM107
AMD Tahiti XT2
AMD FX-8350
Fedora 20

#3
Posted 03/12/2014 08:37 PM   
I got the same problem!
I got the same problem!

#4
Posted 03/12/2014 08:47 PM   
what happens if you do: module avail mpi and module avail
what happens if you do:

module avail mpi

and

module avail

#5
Posted 03/12/2014 09:08 PM   
[quote="txbob"]what happens if you do: module avail mpi and module avail[/quote] [code] ------------------------------------------------------------------------- /etc/modulefiles -------------------------------------------------------------------------- mpi/mpich-x86_64 mpi/openmpi-x86_64 mpich-x86_64 [/code] [code] ------------------------------------------------------------------ /usr/share/Modules/modulefiles ------------------------------------------------------------------- dot module-git module-info modules null use.own ------------------------------------------------------------------------- /etc/modulefiles -------------------------------------------------------------------------- mpi/mpich-x86_64 mpi/openmpi-x86_64 mpich-x86_64 [/code]
txbob said:what happens if you do:

module avail mpi

and

module avail

------------------------------------------------------------------------- /etc/modulefiles --------------------------------------------------------------------------
mpi/mpich-x86_64 mpi/openmpi-x86_64 mpich-x86_64


------------------------------------------------------------------ /usr/share/Modules/modulefiles -------------------------------------------------------------------
dot module-git module-info modules null use.own

------------------------------------------------------------------------- /etc/modulefiles --------------------------------------------------------------------------
mpi/mpich-x86_64 mpi/openmpi-x86_64 mpich-x86_64

NVIDIA GM107
AMD Tahiti XT2
AMD FX-8350
Fedora 20

#6
Posted 03/13/2014 12:58 AM   
try module load mpi/openmpi-x86_64 then do: which mpicxx
try

module load mpi/openmpi-x86_64

then do:

which mpicxx

#7
Posted 03/13/2014 01:26 AM   
[quote="txbob"]try module load mpi/openmpi-x86_64 then do: which mpicxx[/quote] [code] $ which mpicxx /usr/lib64/openmpi/bin/mpicxx [/code] Fantastic, it's working now!
txbob said:try

module load mpi/openmpi-x86_64

then do:

which mpicxx

$ which mpicxx 
/usr/lib64/openmpi/bin/mpicxx

Fantastic, it's working now!

NVIDIA GM107
AMD Tahiti XT2
AMD FX-8350
Fedora 20

#8
Posted 03/13/2014 02:46 AM   
Then you should be able to compile the CUDA MPI sample code, I think.
Then you should be able to compile the CUDA MPI sample code, I think.

#9
Posted 03/13/2014 03:19 AM   
[quote="txbob"]Then you should be able to compile the CUDA MPI sample code, I think.[/quote] Yup, it compiled. :) [code] Running on 1 nodes Average of square roots is: 0.667241 PASSED [/code]
txbob said:Then you should be able to compile the CUDA MPI sample code, I think.

Yup, it compiled. :)

Running on 1 nodes
Average of square roots is: 0.667241
PASSED

NVIDIA GM107
AMD Tahiti XT2
AMD FX-8350
Fedora 20

#10
Posted 03/13/2014 03:14 AM   
Scroll To Top

Add Reply