Skip to content
wenyan4work edited this page Jun 27, 2017 · 3 revisions

Welcome to the pvfmm wiki!

Known compilation issues (keep adding):

  1. On macOS 12.5, gcc 7.1 from homebrew, official OpenMPI 2.1.1, intel MKL 2017. If program is linked to libgomp (gcc openmp runtime), MKL_NUM_THREADS must be 1 to generate correct results. To get this, either use the single dynamic library linking mode and export MKL_NUM_THREADS=1, or directly link to the LP64, sequential mode of MKL '-lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl'. If program is linked to libiomp5 (intel openmp runtime), MKL_NUM_THREADS can be set as wish, and the SDL -mkl_rt linking works fine

  2. The OpenMP runtime library from clang/llvm4.0 closes the runtime at the end of main function and makes omp calls from global objects invalid. Similar to this: https://software.intel.com/en-us/forums/intel-c-compiler/topic/291343

Clone this wiki locally