- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone!
I tried installing and running a simple Fortran dot multiplication example to test something, and everything seemed to have gone well with regards to installing Visual Studio 2019 Community and Intel Parallel Studio 2020, and integrating them via the installer. Fortran code runs on the system but when I attempt to use MKL-functions (such as sdot in the code at the bottom of the post) it gives me the following error:
forrtl: severe (157): Program Exception - access violation
Image PC Routine Line Source
mkl_avx2.dll 7A62D5CA Unknown Unknown Unknown
mkl_core.dll 784955AE Unknown Unknown Unknown
Console2.exe 004813E9 Unknown Unknown Unknown
Console2.exe 0048310F Unknown Unknown Unknown
Console2.exe 004860A3 Unknown Unknown Unknown
Console2.exe 00485F77 Unknown Unknown Unknown
Console2.exe 00485E1D Unknown Unknown Unknown
Console2.exe 00486108 Unknown Unknown Unknown
KERNEL32.DLL 75996359 Unknown Unknown Unknown
ntdll.dll 77B97B74 Unknown Unknown Unknown
ntdll.dll 77B97B44 Unknown Unknown Unknown
Intel MKL is activated under Project > Configuration Properties > Libraries as Sequential (/Qmkl:sequential) so I presume that it knows where the files are, and that I simply that the permission to access them on my own computer? Is there anything I can do to fix this?
Thank you for your time. :)
The code I'm trying follows if it is of any use to you.
program Console1
integer :: n,incA,incB
real :: resd,ress,i
real, dimension(10) :: A,B
resd=0
n = 10
do i = 1,n
A(i) = i
B(i) = i
end do
ress = sdot(n,A,incA,B,incB)
print*,ress
end program Console1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have left incA, incB uninitialized. You probably want them to be set equal to 1 before the call. If they happen to be zero, because of various causes, imagine what will happen.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Eric, at first glance everything looks correct. The example you use successfully built and ran from the command line. wrt VS - probably there is some problem with integration of parallel studio with VS2019. Could you try to link with MKL manually? Please refer to this article shows some details: https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have left incA, incB uninitialized. You probably want them to be set equal to 1 before the call. If they happen to be zero, because of various causes, imagine what will happen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mecej4 wrote:You have left incA, incB uninitialized. You probably want them to be set equal to 1 before the call. If they happen to be zero, because of various causes, imagine what will happen.
I feel amazingly stupid for not noticing it, but I guess that's why you have to ask for help sometimes so that others can notice what you don't. It worked now, massive thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Happens! Been there, done that.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page