Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

catastrophic error: cannot open source file "iostream"

$
0
0

I am compiling a correct example (taken from here), but I am getting:

gsamaras@pythagoras:~/intel/code$ ../bin/icc -mkl nine_by_nine.c -o nnine_by_nine.c(2):
catastrophic error: cannot open source file "iostream"
  #include <iostream>

If I compile with mpicc nine_by_nine.c -l../../mpich-install ${MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_intel_thread.a -Wl,--end-group ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -liomp5 -ldl -lpthread -lm, as suggested here, I am getting the very same error message.

What should I do?

Notice that this does not seem to help me.

---

EDIT:

An example that includes these headers works just fine:

#include <stdio.h>
#include <stdlib.h>
#include "mkl.h"

 


Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>