[petsc-dev] KNC build?

Satish Balay balay at mcs.anl.gov
Wed Nov 5 13:05:09 CST 2014


On Wed, 5 Nov 2014, Mark Adams wrote:

> >
> >
> > 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.

Hm - the link errors below looks the same. And Superlu_DIST didn't get
rebuilt.

Perhaps you can do 'rm -rf arch-knc-opt' - and retry with the the
alternate fix I sent?

Satish

==================================================================================
      Checking for a functional SuperLU_DIST
              Looking for SUPERLU_DIST in directory starting with SuperLU_DIST
              Found a copy of SUPERLU_DIST in SuperLU_DIST
                Pushing language C
                Popping language C
Do not need to rebuild SuperLU_DIST

                                                                  
> 
> 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$
> 




More information about the petsc-dev mailing list