[petsc-dev] KNC build?

Mark Adams mfadams at lbl.gov
Wed Nov 5 12:56:34 CST 2014


>
>
> This is probably due to the hacky code required to build some of the
> externalpackages [to deal with NOOPT]
>
> superlu.py:
>
>     g.write('NOOPTS       =
> '+self.getSharedFlag(self.setCompilers.getCompilerFlags())+'
> '+self.getPointerSizeFlag(self.setCompilers.    getCompilerFlags())+'
> '+self.getWindowsNonOptFlags(self.setCompilers.getCompilerFlags())+'\n')
>
> Well this needs a fix so that '-mmic' option can pass through [perhaps
> also  '-mkl -fp-model precise']
>
> As a hack - you can try:
>
>     g.write('NOOPTS       = -mmic')
>
>
> SuperLU_DIST.py will also require similar fix.
>
>
Satish, I tried this and it got better apparently and I've attached the log.

0:30 130 bint01 master ~/petsc_private/src/ksp/ksp/examples/tutorials$ make
PETSC_DIR=/global/homes/m/madams/petsc PETSC_ARCH=arch-knc-opt ex1
mpiicc -o ex1.o -c -mmic -mkl -fp-model precise -O3
-I/global/homes/m/madams/petsc/include
-I/global/homes/m/madams/petsc/arch-knc-opt/include
-I/chos/global/u2/m/madams/petsc/arch-knc-opt/include
-I/global/babbage/nsg/opt/intel/impi/4.1.3.048/intel64/include
 `pwd`/ex1.c
mpiicc -mmic -mkl -fp-model precise -O3  -o ex1 ex1.o
 -L/global/homes/m/madams/petsc/arch-knc-opt/lib  -lpetsc
-Wl,-rpath,/chos/global/u2/m/madams/petsc/arch-knc-opt/lib
-L/chos/global/u2/m/madams/petsc/arch-knc-opt/lib -lsuperlu_4.3
-lsuperlu_dist_3.3 -lparmetis -lmetis -lpthread
-L/global/babbage/nsg/opt/intel/impi/4.1.3.048/mic/lib
-L/global/babbage/nsg/opt/intel/composerxe/composer_xe_2015.0.090/compiler/lib/mic
-L/global/babbage/nsg/opt/intel/composerxe/composer_xe_2015.0.090/mkl/lib/mic
-L/global/babbage/nsg/opt/intel/composerxe/composer_xe_2015.0.090/tbb/lib/mic
-L/chos/global/babbage/nsg/opt/intel/composerxe/composer_xe_2015.0.090/compiler/lib/mic
-L/usr/linux-k1om-4.7/lib/gcc/x86_64-k1om-linux/4.7.0
-L/usr/linux-k1om-4.7/lib/gcc -L/usr/linux-k1om-4.7/linux-k1om/lib64
-L/usr/linux-k1om-4.7/linux-k1om/usr/lib64
-Wl,-rpath,/global/babbage/nsg/opt/intel/impi/4.1.3.048/mic/lib
-Wl,-rpath,/opt/intel/mpi-rt/4.1 -lifport -lifcore -lm
-Wl,-rpath,/chos/global/u2/m/madams/petsc/or -lmpigc4 -ldl -lmpigf -lmpi
-lmpigi -lrt -lpthread -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core
-liomp5 -limf -lsvml -lirng -lipgo -ldecimal -lcilkrts -lstdc++ -lgcc_s
-lirc -lirc_s -ldl
x86_64-k1om-linux-ld: warning: libintlc.so.5, needed by
/global/babbage/nsg/opt/intel/composerxe/composer_xe_2015.0.090/compiler/lib/mic/libifport.so.5,
not found (try using -rpath or -rpath-link)
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file
`/global/homes/m/madams/petsc/arch-knc-opt/lib/libsuperlu_4.3.a(superlu_timer.o)'
is incompatible with k1om output
x86_64-k1om-linux-ld:
/global/homes/m/madams/petsc/arch-knc-opt/lib/libsuperlu_4.3.a(superlu_timer.o)(.text+0xc):
reloc against `sysconf@@GLIBC_2.14': error 4
x86_64-k1om-linux-ld: final link failed: Nonrepresentable section on output
make: [ex1] Error 1 (ignored)
/bin/rm -f ex1.o
10:53 bint01 master ~/petsc_private/src/ksp/ksp/examples/tutorials$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20141105/eab3104a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 2663115 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20141105/eab3104a/attachment.obj>


More information about the petsc-dev mailing list