I want to compile a code that aims to run natively in mic cores in the host. The code complies well and run correctly in the host. [hpc1]$ icc -no-multibyte-chars test_mic.c -o test_mic -lcrypto [hpc1]$ ./rsa_mic I then compiled the same code for mic cores. As far as I know, when the option -mmic is added, the default paths for the include files and the libraries will change, so I point them out (-I/usr/include/ -L/usr/lib64/). It seems that something is wrong in linking the libcrypt library. [hpc1]$ icc -mmic -no-multibyte-chars test_mic.c -o test_mic -I/usr/include/ -L/usr/lib64/ -lcrypto x86_64-k1om-linux-ld: skipping incompatible /usr/lib64//libcrypto.so when searching for -lcrypto x86_64-k1om-linux-ld: cannot find -lcrypto x86_64-k1om-linux-ld: skipping incompatible /usr/lib64//libm.so when searching for -lm x86_64-k1om-linux-ld: skipping incompatible /usr/lib64//libc.so when searching for -lc It would be great if I could get your help. Thanks.
For more complete information about compiler optimizations, see our Optimization Notice.