[Users] building on MIC

Erik Schnetter schnetter at cct.lsu.edu
Fri Dec 14 11:03:22 CST 2012


Steve

Looking at the output, it seems that Cactus uses mpicc, while icc reports
and error. Does mpicc maybe use icc? What happens if you type "mpicc
--version"?

Generally, I recommend against using mpicc, since it complicates the
configuration stage (it may be difficult to run small test programs). With
cross-compiling, this may not be so much of an issue since you can't run
test programs anyway.

I assume that you are trying this with an empty thorn list?

Your option list looks strage. Is this really a Fedora system?

You are setting MPI_DIR = /opt/apps/intel13/impi/4.1.0.024/intel64. Does
this make sense, if you expect to not be using icc? What compiler should be
used to generate the code, gcc or icc?

You are setting FPP_OPENMP_FLAGS = -D_OPENMP; this is only necessary for
very old versions of GNU cpp. For modern versions, I
recommend FPP_OPENMP_FLAGS = -fopenmp.

You are using -rdynamic in CFLAGS. This is a linker option; it should go to
LDFLAGS instead.

-erik



On Fri, Dec 14, 2012 at 10:12 AM, Steven R. Brandt <sbrandt at cct.lsu.edu>wrote:

> I'm trying to build on MIC. In order to do that, I have to cross compile.
> See attached cfg file.
>
> Anyhow, I build with simfactory and get this:
>
> End of options from '/home1/00044/tg457049/Cactus/**
> configs/sim/OptionList'.
> creating cache ./config.cache
> checking host system type... x86_64-unknown-linux-gnu
> checking whether make sets ${MAKE}... yes
> checking whether the C compiler (mpicc -g3 -m128bit-long-double -mmic
> -rdynamic -Wunused-variable ) works... yes
> checking whether the C compiler (mpicc -g3 -m128bit-long-double -mmic
> -rdynamic -Wunused-variable ) is a cross-compiler... yes
> checking whether we are using GNU C... yes
> checking whether the C++ compiler (mpicxx -g3 -m128bit-long-double -mmic
> -std=c++03 -rdynamic -Wunused-variable ) works... yes
> checking whether the C++ compiler (mpicxx -g3 -m128bit-long-double -mmic
> -std=c++03 -rdynamic -Wunused-variable ) is a cross-compiler... yes
> checking whether we are using GNU C++... yes
>
> So I expect the mpicc compiler to be used. It isn't. What am I doing wrong?
>
> Cheers,
> Steve
>
> _______________________________________________
> Users mailing list
> Users at einsteintoolkit.org
> http://lists.einsteintoolkit.org/mailman/listinfo/users
>
>


-- 
Erik Schnetter <schnetter at cct.lsu.edu>
http://www.perimeterinstitute.ca/personal/eschnetter/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/users/attachments/20121214/a9fa67a9/attachment.html 


More information about the Users mailing list