ralna / spral

Sparse Parallel Robust Algorithms Library
https://ralna.github.io/spral/
Other
106 stars 26 forks source link

Failure to run the examples. Memory allocation failed for OMETIS #80

Closed chenlin0 closed 1 year ago

chenlin0 commented 2 years ago

I try to compile the spral/examples/C/ssids.c. I get this: gcc -o ssids ssids.c -fopenmp -O3 -lspral -lmetis -lmkl_rt -lhwloc -lgfortran -lm -lstdc++ ./ssids Current memory used: 416 bytes Maximum memory used: 416 bytes ***Memory allocation failed for OMETIS: cptr. Requested size: 18446744039349813296 bytes

Error return from ssids_factor. Error flag = -1 Error in sequence of calls.

jfowkes commented 2 years ago

Could you please try again without -lmkl_rt? Intel provide their own OpenMP runtime library that is not compatible with GCC's OpenMP runtime library.