Hello,
I am new to Intel and I face a strange problem on defining MPI_INT as long int.
Problem: I add
#define MKL_INT long int
at the very beginning of the provided example <mklroot>/examples/examples_core_c.tgz/spblasc/source/sparse_trsv.c, and the output data for mkl_sparse_d_trsv is [1.0, 5.0, 3.0, 4.0, -13.0], which is incorrect, while no issue is raised when compling.
If I don't add that #define sentence, everything is fine and the output data is the correct answer [1.0, 7.0, 1.0, 6.0, -55.0].
The working environment:
Any advice or solution is welcome.
For more complete information about compiler optimizations, see our Optimization Notice.