[visit-developers] compiling fscalarp

Favre Jean jfavre at cscs.ch
Tue Feb 9 07:54:22 EST 2016


Developers,

when compiling with VISIT_FORTRAN=ON, VISIT_PARALLEL=ON, VISIT_DATA_MANUAL_EXAMPLES=ON , I have a failure because it uses the default "gfortran" (or similar), instead of an MPI-aware compiler or compiler options.

/usr/bin/gfortran      -O2 -g -DNDEBUG CMakeFiles/sim_fscalarp.dir/fscalarp.f.o CMakeFiles/sim_fscalarp.dir/simulationexamplev2.f.o  -o fscalarp -rdynamic /usr/lib/libmpi.so /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libhwloc.so ../../../lib/libsimV2f.a ../../../lib/libsimV2.a -ldl -lm
CMakeFiles/sim_fscalarp.dir/fscalarp.f.o: In function `processvisitcommand_':
/local/apps/VisIt/src/tools/DataManualExamples/Simulations/fscalarp.f:121: undefined reference to `mpi_bcast_'
/local/apps/VisIt/src/tools/DataManualExamples/Simulations/fscalarp.f:118: undefined reference to `mpi_bcast_'

switching the command line manually with mpif90, fixes the issue.

So it is a "simple" matter of fixing the CMakeLists.txt to link with the parallel libs, or to use the parallel compiler. However, I was not able to find the exact trick to apply. Can a developer familiar with this part find the right combo of compiler options?

TIA

-----------------
Jean/CSCS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://elist.ornl.gov/pipermail/visit-developers/attachments/20160209/01f230e4/attachment.html>


More information about the visit-developers mailing list