how to compile my program using static mode for MIC(Xeon Phi)

how to compile my program using static mode for MIC(Xeon Phi)

I compile my program as the follwoing  to staticly link MKL I get the follwoing error .

I am using composer_xe_2013 , and icc .

bash-4.1$ icc -mmic -openmp -no-vec s_mkl_double_one_dim_reorder_err.c  -Wl,--start-group  libmkl_intel_lp64.a libmkl_intel_thread.a libmkl_core.a libiomp5.so -Wl,--end-group -o s_mkl_static.mic

The Error that I have from compiling it :

x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `libmkl_intel_lp64.a(cblas_dgemm_lp64.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `libmkl_intel_lp64.a(_dgemm_lp64.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `libmkl_intel_lp64.a(cblas_xerbla_lp64.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `libmkl_intel_lp64.a(cblas_auxi_lp64.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `libmkl_intel_lp64.a(errchk_dgemm.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `libmkl_intel_lp64.a(_cdecl_xerbla.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `libmkl_intel_lp64.a(_xerbla_l.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `libmkl_intel_lp64.a(_xerbla_l_.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `libmkl_intel_lp64.a(_xerbla_u_.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `libmkl_intel_lp64.a(_xerbla.o)' is incompatible with k1om output
x86_64-k1om-linux-ld: BFD (GNU Binutils) 2.22.52.20120302 internal error, aborting at ../../../binutils/bfd/elf64-x86-64.c line 3382 in elf_x86_64_relocate_section

x86_64-k1om-linux-ld: Please report this bug.

2 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi