Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7261 토론

Help w/ Visual Studio 2022 and Fortran Compiler

MartinStephenson
새로운 기여자 I
8,191 조회수

I am looking for Vipin_s_Intel,

 

When I open Visual Studio, I receive the following message:

MartinStephenson_0-1743454216977.png

 

Do you have suggestions on how I can resolve this?

 

We followed the troubleshooting steps below and now obtain the above window when I start up MS Visual Studio 2022.  Can you point me to the proper group at Microsoft if this outside of Intel's troubleshooting capabilities?  Lastly, I can compile a program.  However, I cannot figure out how to run it.  Below is the window in MS Visual Studio 2022.

MartinStephenson_1-1743456119873.png

I am sure that i am missing something basic.  Thank you, Vipin. - Martin 

0 포인트
1 솔루션
MartinStephenson
새로운 기여자 I
6,255 조회수

Hi Aleksandra,

I used the Parallel option.  Everything is working well.  See the screenshot below.

MartinStephenson_0-1745606574697.png

 

Thank you for all of your help, Aleksandra.  

 

Martin

 

 

원본 게시물의 솔루션 보기

0 포인트
15 응답
Vipin_S_Intel
중재자
8,122 조회수

Hi Martin,

Thank you for getting back to me! I completely understand how important it is to get this sorted.

In order to investigate the correct version of Visual Studio and its build, I just need to confirm a few details. To check if the compiler is properly integrated, could you please follow these steps and share a screenshot?


  1. Inside Visual Studio, go to Help > About Microsoft Visual Studio.
  2. Take a screenshot showing the components of the toolkit.


Once I have the screenshot, I’ll do my best to reproduce the issue and help you resolve it.


Note: Following our security policy, I have edited your original post, as it included a few download links. If any of the details you need to share contain confidential information, such as product details or serial numbers, please reply or post them via private message.


Looking forward to your response!


Have a great day ahead!


0 포인트
MartinStephenson
새로운 기여자 I
8,096 조회수

Hi Vipin,

 

I took three screen shots so that you can see the entire menu.  

Below is a copy of each shot and attached are png files of each screenshot.

MartinStephenson_0-1743519359600.png

 

MartinStephenson_1-1743519528990.png

 

MartinStephenson_2-1743519816412.png

Here is a screenshot of the installation.  

MartinStephenson_3-1743520121179.png

 

We downloaded both the C++ and the Fortran Compiler.

I was able to figure out how to run a program.  I simply hit

the Cyrl+F5 Button or the 'Debug menu and selected 'Start without Debugging.'

 

A second question topic, is that I saw several libraries included when I/ we

downloaded the programs.  One was a Math Kernal Library.  In the past,

I used the IMSL Subroutines to solve a set of equations via say Gaussian

Elimination of a full or a banded matrix.  I included a statement in my code

stating 'USE IMSL' and then I simply called the Subroutine that I needed. 

Do any of the libraries in the list above have Subroutines that I can simply 

call from any of the libraries?

 

Thank you, Vipin.

 

Martin Stephenson

 

0 포인트
MartinStephenson
새로운 기여자 I
7,782 조회수

Hi Vipin,

Thank you for escalating my case.  Hopefully, someone can resolve this soon.

 

A second question topic, is that I saw several libraries included when I/ we

downloaded the programs.  One was a Math Kernal Library.  See attached

screenshot.

 

In the past, I used the IMSL Subroutines to solve a set of equations via say

Gaussian Elimination of a full or a banded matrix.  I included a statement

in my code stating 'USE IMSL' and then I simply called the Subroutine that

I needed.  Do any of the libraries in the list above have Subroutines that I

can simply call from any of the libraries?

 

Thank you again, Vipin.

 

Martin Stephenson

0 포인트
Vipin_S_Intel
중재자
8,075 조회수

Hi Martin,


I have sent you a private message. Please check your community inbox.


0 포인트
MartinStephenson
새로운 기여자 I
7,952 조회수

Hi Vipin,

 

Below is a Screen Shot of the 'About Microsoft Visual Studio' window that opened.  

MartinStephenson_0-1743602285604.png

 

I cannot enlarge this window by hovering my mouse over the edge or corner of this window until the cursor changes to a resizing icon, then click and drag to resize.   The Cursor does not change.  I was able to click on the 'Copy Info' icon to capture all of the information in this window.  This information is in the attached MS Word document that contains the information of the installed products.  Please open this attached MS Word document.  It will have all of the information that you are seeking.  I hope that you can now reproduce the issue and help me resolve it.

 

Thank you, Vipin.

 

0 포인트
andrew_4619
명예로운 기여자 III
8,011 조회수

In relation to the original post I also get that pop up and also periodically another similar one. They are irritationing but OI have be ignoring for several months with no ill effects.

 

You seem to have made a debug build which can be run in VS under the debug menu options.

 

 

0 포인트
JohnNichols
소중한 기여자 III
7,898 조회수

This occurs from time to time, like Andrew one ignores stuff that does not stop the build.  

 

0 포인트
Aleksandra_K
중재자
7,421 조회수

Hi,

For the list of linear equation computational routines in oneMKL please refer to LAPACK Linear Equation Computational Routines


Regards,

Aleksandra


0 포인트
MartinStephenson
새로운 기여자 I
7,396 조회수

Thank you for your response, Aleksandra.  

I went to the link that you sent me and saw the DGESV Example Program in Fortran link.

https://www.intel.com/content/www/us/en/docs/onemkl/code-samples-lapack/2022-1/dgesv-example.html#:~:text=%3Fgesv%20function-,DGESV%20Example%20Program%20in%20Fortran,-DGESV%20Example%20Program

I saw the following lines on how to use the DGESV routine.

*
*     Solve the equations A*X = B.
*
      CALL DGESV( N, NRHS, A, LDA, IPIV, B, LDB, INFO )
*

 

In what variable does DGESV return the solution 'X?'

The input variables are defined in the example as:

*     .. Parameters ..
      INTEGER          N, NRHS
      PARAMETER        ( N = 5, NRHS = 3 )
      INTEGER          LDA, LDB
      PARAMETER        ( LDA = N, LDB = N )
*
*     .. Local Scalars ..
      INTEGER          INFO
*
*     .. Local Arrays ..
      INTEGER          IPIV( N )
      DOUBLE PRECISION A( LDA, N ), B( LDB, NRHS )

 

'A' is the matrix

'B' is the Right-Hand Side

I do not see the array 'X' being declared.  

 

Also, to call the routine DGSEV, do I simply write:  'EXTERNAL         DGESV'

and then call this routine like in the example?

 

Thank you, Alexsandra

 

0 포인트
Aleksandra_K
중재자
7,182 조회수

The parameter b is overwritten by the solution matrix X, where the columns are the corresponding solutions. Here are all the details of this routine ?gesv.


Regards,

Alex


0 포인트
MartinStephenson
새로운 기여자 I
7,156 조회수

Your response was very helpful, Alex.  I will be on the right track.

 

To use a library of subroutines one needs to write:

Use MIMSL

 

To use the Math Kernal Library subroutines, do I only need to only

call the routine like:

CALL DGESV( N, NRHS, A, LDA, IPIV, B, LDB, INFO )

 or do I also need to put in a statement like 'USE Math Kernal Library'

in addition to the Call statement above?

 

Thank you, Alex.

 

Best Regards,

Martin

 

 

0 포인트
Aleksandra_K
중재자
6,734 조회수

You don't need to write 'USE Math Kernel Library'. In general, you need to set the environment variables (Setting Environment Variables) and link your project with oneMKL (Automatically Linking Your Intel® Fortran Project with oneMKL).


I also recommend looking at the developer's Getting Started guide for more useful information and examples.


Regards,

Alex


0 포인트
Aleksandra_K
중재자
6,427 조회수

Hi,


Did you have a chance to try my suggestions?


Regards,

Alex


0 포인트
MartinStephenson
새로운 기여자 I
6,332 조회수

Yes.  I am trying them now.  

On one of the urls, I see the following:

 

Automatically Linking Your Intel® Fortran Project with oneMKL

Configure your Intel® Fortran project for automatic linking with Intel® oneAPI Math Kernel Library (oneMKL) as follows:

  1. Go to Project > Properties > Fortran > Libraries > Use Intel Math Kernel Library and select Parallel, Sequential, or Cluster as appropriate.

  2. If your project requires the ILP64 interfaces, change the Use ILP64 interfaces property setting by selecting Yes.

 

 

Which one should I pick, Parallel, Sequential, or Cluster?

0 포인트
MartinStephenson
새로운 기여자 I
6,256 조회수

Hi Aleksandra,

I used the Parallel option.  Everything is working well.  See the screenshot below.

MartinStephenson_0-1745606574697.png

 

Thank you for all of your help, Aleksandra.  

 

Martin

 

 

0 포인트
응답