[visit-developers] compiling fscalarp

Brad Whitlock bjw at ilight.com
Tue Feb 9 12:19:55 EST 2016


Hi Jean,
   Are you passing -DVISIT_FORTRAN:BOOL=ON
-DVISIT_MPI_FORTRAN_COMPILER=mpif90 on the cmake command line? My best
guess is that our ADD_PARALLEL_FORTRAN_EXECUTABLE function in
src/CMakeLists.txt isn't setting up additional MPI stuff. Perhaps the
Fortran MPI tests are not being performed.

Brad


On Tue, Feb 9, 2016 at 4:54 AM, Favre Jean <jfavre at cscs.ch> wrote:

> 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/e88b94b5/attachment.html>


More information about the visit-developers mailing list