Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7284 Discussions

Visual Studio 2022 crash when attempting to include MKL files

AA70
Beginner
1,223 Views

Working with an extended (132 char lines) fixed form fortran project in VS 2022 integrated with 2025 oneapi. Whenever I attempt to include references to mkl source files Visual studio crashes with no error messages when attempting the build process. The build process will run normally if this file (mkl_vsl.f90  attached) is removed from the project. I've tried uninstalling both oneApi and VS and reinstalling after running the VS InstallCleanup.exe with the -full option. The problem persists. Has anyone else encountered this problem? Ideas on troubleshooting?

0 Kudos
1 Solution
AA70
Beginner
1,035 Views

Hi Alex,

 

The actual file is correct though the name is wrong. In my project it appears as just vsl.f90 and it does include just the one line. As my project uses 132 character fixed source I was following the instructions from Intel here: Random Number Generators. Since posting this I have found a solution. If I just copy mkl_vsl.f90 from the mkl install location to my project directory then my project compiles fine without crashing VS. I'm not sure how this fixed it unless there is some unforeseen permissions issue reading from the mkl install 'include' folder. I was able to wrap mkl_vml.f90 into a module (mkl_vml_mod) and use it in my code as well after moving mkl_vml.f90 to my VS project folder. I'm satisfied at this point and we can close the thread.

View solution in original post

0 Kudos
2 Replies
Aleksandra_K
Moderator
1,088 Views

Hi, could you please confirm that the file you attached is correct? It has only one line and it includes itself.


Regards,

Alex


0 Kudos
AA70
Beginner
1,036 Views

Hi Alex,

 

The actual file is correct though the name is wrong. In my project it appears as just vsl.f90 and it does include just the one line. As my project uses 132 character fixed source I was following the instructions from Intel here: Random Number Generators. Since posting this I have found a solution. If I just copy mkl_vsl.f90 from the mkl install location to my project directory then my project compiles fine without crashing VS. I'm not sure how this fixed it unless there is some unforeseen permissions issue reading from the mkl install 'include' folder. I was able to wrap mkl_vml.f90 into a module (mkl_vml_mod) and use it in my code as well after moving mkl_vml.f90 to my VS project folder. I'm satisfied at this point and we can close the thread.

0 Kudos
Reply