[petsc-dev] openmp

Jed Brown jedbrown at mcs.anl.gov
Wed Nov 6 21:59:38 CST 2013


Svetlana Tkachenko <svetlana.tkachenko at fastmail.fm> writes:
> Using FLINKER instead of CLINKER in the makefile gets it to compile without errors. However, the previous behaviour persists (?).
>
> ~/dev/test/petsc $ make
> gfortran -c  -fPIC -Wall -Wno-unused-variable -g  -fopenmp  -I/home/<username>/petsc/include -I/home/<username>/petsc/linux-amd64/include -I/home/<username>/petsc/include/mpiuni    -o myexample.o myexample.F90
> gfortran -c  -fPIC -Wall -Wno-unused-variable -g  -fopenmp  -I/home/<username>/petsc/include -I/home/<username>/petsc/linux-amd64/include -I/home/<username>/petsc/include/mpiuni    -o solver.o solver.F90
> gfortran -fopenmp -fopenmp   -fPIC -Wall -Wno-unused-variable -g  -fopenmp  -o myexample myexample.o solver.o -Wl,-rpath,/home/<username>/petsc/linux-amd64/lib -L/home/<username>/petsc/linux-amd64/lib  -lpetsc -Wl,-rpath,/home/<username>/petsc/linux-amd64/lib -lflapack -lfblas -lX11 -lpthread -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -lgfortran -lm -lm -lstdc++ -lstdc++ -ldl -lgcc_s -ldl
> ~/dev/test/petsc $ ./myexample
>  Entered petsc.
>  Init done.
> WARNING! There are options you set that were not used!
> WARNING! could be spelling mistake, etc!
> Option left: name:-threadcomm_nthreads value: 8
> Option left: name:-threadcomm_type value: openmp
>  Finalized.
> ~/dev/test/petsc $

Did you add these options to .petscrc?  Run with -log_summary and send
the output so we can see what configuration you are using.  At the top
of this thread, it looks like you did not configure --with-threadcomm.
I recommend using --with-threadcomm --with-pthreadclasses --with-openmp.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131106/31beed93/attachment.sig>


More information about the petsc-dev mailing list