Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

icc linking issue

chin_o_
Beginner
241 Views

I am creating a dynamic library in linux. below is the command that was used

 

icpc -shared -o xxx.so ************** -static-intel -mkl -Wl,--start-group -lmkl_intel -lmkl_intel_thread -lmkl_core -liomp5 -Wl,--end-group -Wl,-Bdynamic -lm -lpthread

I am using the fft routines in mkl library. However i keep getting this errors

icpc: warning #10237: -lcilkrts linked in dynamically, static library not available
ld: QubeVuBarcodes_test.so: version node not found for symbol omp_set_nest_lock@OMP_3.0
ld: failed to set dynamic section sizes: Bad value

 

any ideas?

0 Kudos
1 Reply
TimP
Black Belt
241 Views

your reference liomp5 must come after all mKl references As mkl link advisor would show.You would require both openmp and cilk shared libraries.  There are additional questions about using both oopenmp and cilk threads.  Mkl sequential might be alternative.

Reply