I installed intel MPI Library 4.1.0.024 and tried compiling a MPI program. If I compile it without -mmic, there's no problem. But when I add -mmic, here's the error message:
/usr/bin/ld: skipping incompatible /opt/intel/impi/4.1.0.024/mic/lib/libmpigc4.so when searching for -lmpigc4
/usr/bin/ld: skipping incompatible /opt/intel/impi/4.1.0.024/mic/lib/libmpigc4.a when searching for -lmpigc4
/usr/bin/ld: cannot find -lmpigc4
I can find the file of libmpigc4.so and libmpigc4.a in the directory of /opt/intel/impi/4.1.0.024/mic/lib. And the PATH in .bashrc is:
source /opt/intel/impi/4.1.0.024/intel64/bin/mpivars.sh
Even I change it to: source /opt/intel/impi/4.1.0.024/mic/bin/mpivars.sh, it gives me the same error.
I need your help. Thank you much
Zhao