cannot open source file when -mmic added

cannot open source file when -mmic added

The c code complies well with $ icc test.c -o test -lcrypto to run in the host. However when I want to build for mic cores, it went wrong. Any idea? Thanks very much for the help.

$ icc -mmic test.c -o test -lcrypto

test.c(4): catastrophic error: cannot open source file "openssl/rsa.h"

  #include <openssl/rsa.h>



compilation aborted for rsa_mic.c (code 4)


2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

It appears that is not an aspect of the OpenSSL that is available by default when compiling for native (-mmic).

I don't know details about OpenSSL but only the bn.h header is available by default (under: /opt/mpss/3.1/sysroots/x86_64-mpsssdk-linux/usr/lib/k1om-mpss-linux/gcc/k1om-mpss-linux/4.7.0/include-fixed/openssl for MPSS 3.1) with -mmic.

The guide I noted in your earlier post contains discussion about building OpenSSL for native use. See Configuring Intel® Xeon Phi™ coprocessors inside a cluster guide (

The compiler is telling you that there is no openssl header in the standard include paths for the MIC. That very likely means that there is also no openssl library that has been built for MIC.

Apparently discusses how to build OpenSSL.

Leave a Comment

Please sign in to add a comment. Not a member? Join today