dmalhotra / pvfmm

A parallel kernel-independent FMM library for particle and volume potentials
http://pvfmm.org
GNU Lesser General Public License v3.0
51 stars 28 forks source link

Not compiling on Linux & Intel Compiler #2

Closed oseledets closed 3 months ago

oseledets commented 8 years ago

The code is not compiling with standard setup sequence (autogen, configure, make) with Intel Composer_XE_2015.0 on Ubuntu, with a strange error possibly related to MIC. The compiler log is attached output.txt

dmalhotra commented 8 years ago

Ivan, are you able to compile without MIC? You will need to configure with CXXFLAGS="-no-offload".

On Mon, Feb 29, 2016, 3:00 AM Ivan Oseledets notifications@github.com wrote:

The code is not compiling with standard setup sequence (autogen, configure, make) with Intel Composer_XE_2015.0 on Ubuntu, with a strange error possibly related to MIC. The compiler log is attached output.txt https://github.com/dmalhotra/pvfmm/files/150571/output.txt

— Reply to this email directly or view it on GitHub https://github.com/dmalhotra/pvfmm/issues/2.

wenyan4work commented 7 years ago

Just FYI. On the latest intel compiler (icc 17 + intel mpi libs), I had the same compilation error related to MIC, and I used the following configure options to get pvfmm working:

PVFMM/ $ mpicxx --version
icpc (ICC) 17.0.1 20161005
Copyright (C) 1985-2016 Intel Corporation.  All rights reserved.

Intel seems to have changed the options from 'no-offload' to 'qno-offload'.

./configure MPICXX=mpicxx --with-openmp-flag='qopenmp' \
 CXXFLAGS=" -qno-offload -Ofast -xHost -ipo -DNDEBUG -ipo -std=c++11 -I$MKLROOT/include" \
 --with-fftw-include="$MKLROOT/include/fftw" --with-fftw-lib="-mkl" \
--with-blas='-mkl' --with-lapack='-mkl'

qopenmp resolves a configure error and qno-offload resolves the compilation error related to MIC.