[mpich-discuss] pgf90-Error-Unknown switch: -pthread

James Long jlong at iarc.uaf.edu
Wed Jul 9 16:55:14 CDT 2014


I need to use srun to launch mpi jobs under slurm, so configured mpich-3.1.1 with

$ env CC=pgcc FC=pgf90 CXX=pgCC CPPFLAGS="-DNDEBUG -DpgiFortran" CFLAGS="-O2" FFLAGS="-O2 -w" ./configure --prefix=/opt/mpich-slurm --with-pmi=slurm --with-pm=no --with-slurm-include=/usr/include/slurm --with-slurm-lib=/usr/lib/slurm --enable-fortran=yes

The following error occurs when compiling:

  CC       src/mpid/common/datatype/lib_libmpi_la-mpir_type_flatten.lo
  CC       src/mpid/common/sched/lib_libmpi_la-mpid_sched.lo
  CC       src/mpid/common/thread/lib_libmpi_la-mpid_thread.lo
  CC       src/mpi_t/lib_libmpi_la-mpit.lo
  CC       src/nameserv/pmi/lib_libmpi_la-pmi_nameserv.lo
  GEN      lib/libmpi.la
pgf90-Error-Unknown switch: -pthread
make[2]: *** [lib/libmpi.la] Error 1
make[2]: Leaving directory `/home/boss/mpich-3.1.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/boss/mpich-3.1.1'
make: *** [all] Error 2

config.log is at http://pastebin.com/aB8CZsr0

Jim
--

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
James Long
International Arctic Research Center
University of Alaska Fairbanks
jlong|at|alaska.edu
(907) 474-2440
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%







More information about the discuss mailing list