Compile error in Fortran - missing libicaf.so file

Compile error in Fortran - missing libicaf.so file

Bild des Benutzers Alfred O.

Below is a sample coarray Fortran program:

program hello_image
write(*,*) 'Hello from image ', this_image(), &
'out of ', num_images(),' total images'
end program hello_image

I used the -coarray option when I compiled the program:

ifort -coarray hello_image.f90 -o hello_image

When I compiled the program, I receive the message below:
ld: warning: libmpi_mt.so.4, needed by /opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so, not found (try using -rpath or -rpath-link)
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Barrier'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Comm_dup'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Put'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Get'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Isend'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Init'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Free_mem'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Win_unlock'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Alloc_mem'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Comm_size'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Abort'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Wait'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Recv'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Finalized'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Comm_rank'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Win_lock'

/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Finalize'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Win_free'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Win_set_errhandler'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Win_fence'
/opt/intel/composer_xe_2013.0.079/compiler/lib/intel64/libicaf.so: undefined reference to 'MPI_Win_create'

I attempted to use an older compiler (intel-compiler_xe_2011.0.084), and still generated the same messages.

2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Bild des Benutzers HeinzB (Intel)

the installation puts the needed MPI library libmpi_mt.so.4 into /opt/intel/composer_xe_2013.0.079/mpirt/lib/intel64 (or ia32). Please check whether this is true for your environment. In case it is, please check $LD_LIBRARY_PATH: The above path must be part or it after you have 'sourced' the compilervars.sh script. May be you use some individual way to set up the compiler environment ( instead of sourcing the compilervars.sh script) and this misses the MPI part.

Melden Sie sich an, um einen Kommentar zu hinterlassen.