Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
143 Views

Calling mkl_dimatcopy from C#

Hi,

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.

Regards, Site

0 Kudos
2 Replies
Highlighted
Moderator
143 Views

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?

0 Kudos
Highlighted
Beginner
143 Views

Hi Gennady, 

Thanks for your answer. I will follow your suggestion and test the C API first.

Regards, Site

0 Kudos