Is this the value was asking about in the comments? My computer supports upto AVX2 instructions and I'm compiling with MinGW GCC (not sure how to check the version of gcc on codeblocks). When building with '-march=native' I also get several alignment warnings. If I don't compile with '-march=native' then the error doesn't happen and the program runs fine. At that point, the program throws the (0xC0000005) error. The line that's breaking is when p.TXangle is initialized. P.TXangle = Eigen::VectorXd::LinSpaced(p.na,0,p.na-1) Here is a slimmed down version of the code that causes the issue: #include I was getting a memory access violation error when running my main project. The code I am rewriting uses Eigen and SIMD intrinsic instructions, so I need to compile with the -march=native flag. I am rewriting some c++ code (originally written in Matlab as a MEX function) in codeblocks so that I can use debugging and profiling tools designed for c++.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |