Registered Member
|
I am trying to run Eigen in parallel.
I have usual sequential code with Eigen which is compiled and works perfectly. I am trying to test it with "-fopenmp" flag (I don't have any parallel loops inside my code, just want to test Eigen with OpenMP): but then the compiler gives me a linker error:
flags which I am using are: "-std=c++11 -g -fopenmp -Wall -Wextra -pthread -Wno-missing-field-initializers" also "Eigen/Core" is included. Thank you in advance. |
Moderator
|
|
Registered Member
|
Also I updated GCC to 4.9 |
Moderator
|
You need to add -fopenmp to the linker flags too.
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell