Hello, I am trying to run a simple OpenMP matrix multiplication code with array sizes 200*200. I found out that when my code is compiled with optimizations disabled such as "icc -openmp -O0 matmul.c" and when executed a segfault occurs. However, when compiled simply "icc -openmp matmul.c" the code works properly. I would like to disable all the optimizations when running the openmp code, that's is why I need -O0. Can anyone help with the problem? Thank you,
For more complete information about compiler optimizations, see our Optimization Notice.