I am following the examples on using MKL from C# (https://www.intel.com/content/www/us/en/develop/articles/using-intel-mkl-in-your-c-program.html). I downloaded the example files there and tried to add some more that I might need for my own applications. I tried the following
- cblas_dscal. This works very well in the test.
- mkl_dimatcopy. This is causing a problem when running and I could not solve it myself. Visual studio is telling "System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'" At this moment I have no idea how it can be fixed and any help on it would be appreciated. Thanks!
The project file is attached for reference.
formally speaking, mkl doesn't support these API, but the first of our recommendation is to be sure that your C code works well. did you make sure that you called this routine correct from C API?