Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline::C compilation with intel icc compiler #48

Closed
jmricher70 opened this issue Aug 23, 2015 · 1 comment
Closed

inline::C compilation with intel icc compiler #48

jmricher70 opened this issue Aug 23, 2015 · 1 comment

Comments

@jmricher70
Copy link

Hi,
I am trying to compile some inline::C program with icc, so I have added the following to the arguments of inline::C :

use Inline C => Config => CLEAN_AFTER_BUILD => 0,
CC => '/opt/intel/composer_xe_2015.1.133/bin/intel64/icc',
CCFLAGS => '-openmp',
BUILD_NOISY => 1,
LIBS => '-Wl,--start-group -L/opt/intel/mkl/lib/intel64 -Wl,--end-group -lmkl_core -liomp5 -lmkl_intel_thread -lpthread -ldl -lm';

Everything is fine except when it compiles the undefined symbol: __kmpc_global_thread_num appears. This is due to the lack of library libiomp5.so. However it is specified in the LIBS option.

I checked the Makefile.PL and it appears, but it does not appear in the Makefile generated by Makefile.PL. It seems Makefile.PL is removing it.

So my question is : what can I do to have -liomp5 appear in the Makefile ?

Regards,
JM

@jmricher70
Copy link
Author

I could figure out why it is not working, the path to the libiomp5.so is not found, so I have added
"-L/opt/intel/lib/intel64" to the LIBS and it works ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant