# this is needed by the wrapper to force linking to right lib file (impimt.lib instead of impi.lib). # Important: even if icl.exe complains about non-existing /mt_mpi flag during compilation, # opportunities: this also requires -mt_mpi for the link stage. # Also pass -Qparallel, just in case Intel C compiler finds automatic parallelization # This is important because we configure OpenMP with make config. # Pass flags to compiler wrapper to use multi-threaded MPI libraries (-mt_mpi) # paths that are present in the shell: use nmake instead.ĬONFIG_FLAGS += -DCMAKE_C_LINK_EXECUTABLE=$(cc)ĬONFIG_FLAGS += -DCMAKE_CXX_LINK_EXECUTABLE=$(cxx) # Also, cmake defaults to Visual Studio project files do not seem to inherit important # important flags that need to be set by compiler wrapper. # Motivation: cmake defaults to link.exe as linker, strips out bat extension seems to be required by cmake to locate the files.Ĭall make config openmp=1 debug=0 cc=%comp% cxx=%comp% # Motivation: default mpicc calls MS Visual C++ compiler (cl.exe) mpiicc calls icl.exe instead. Even if this was commented out in v.4.0.2, one still needs to define a few things.Ĭalls inside Intel Compiler command prompt: My first time working with CMake and the FindMPI package does not like the Intel MPI wrappers very much (initially started with v.4.0.1). There is Intel C compiler (icc), Intel Fortran compiler (ifort), Intel MKL libraries, Intel debugger (idb), Intel MPI and Intel Threading Building Block.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |