- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You do not show any code and part of your question is written in Chinese, which does not help people to help you ;). But luckily the problem is easily understood. Your routine GETRS is a generic interface name. Check the use of that name and see whether the specific subroutines that are associated with GETRS have an argument list that matches the actual use. There is bound to be a mismatch there. Or you are not using the right modules. Without the code (or a small reproducer) there is no way we can supply you with more specific help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sorry, my english is not well, and i will translate this post by myself and translator
my function is behind,i need your help
program test
use lapack95
integer,parameter::n=3
integer i
real(4)::a(n,n),b(n)
integer ipiv(n)
a=reshape([1,0,1,2,1,0,3,3,0],[n,n])
b(:)=[14,11,1]
call getrf(a,ipiv,i)
call getrs(a,ipiv,b)
print*,b
pause
end programprogram test
use lapack95
integer,parameter::n=3
integer i
real(4)::a(n,n),b(n)
integer ipiv(n)
a=reshape([1,0,1,2,1,0,3,3,0],[n,n])
b(:)=[14,11,1]
call getrf(a,ipiv,i)
call getrs(a,ipiv,b)
print*,b
pause
end program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, your English is not as bad as my Chinese, so do not worry too much about that.
You can post source code in a much more reliable way using the three dots and the </> option that should appear.
From your code example I see that you are using the lapack95 module. This defines various routines that come under the generic name "GETRS". So far so good. From the source code of that module I do not see what could be wrong, though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your answer. I'm not sure if you can see the picture I sent. Since I downloaded this software, I have made four additional configurations, as follows:
1. Configuration options in the project menu,Then comes the attribute options, then Fortran, General, and then i had configured the Additional include directories
2. Configuration options in the project menu,Then comes the attribute options, then Fortran, then libraries, and i had modified the runtime library to debug multithread dll(/libs:dll/threads/dbglibs)
3. Configuration options in the project menu,Then comes the attribute options, then Linker, then general and i modified the additional library directories.
4. Configuration options in the project menu,Then comes the attribute options, then Linker ,then input and i had modified the additional dependencies to mkl_lapack95.lib
I hope to receive your help
I knowI hope to receive your help that it is difficult to completely solve the problem in this detail, but thank you very much for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need some help on how to configure the environment, preferably in the form of images. Thank you for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your example can be compiled and run in a OneAPI command window as follows:
S:\LANG\MKL>ifx /Qmkl /Od heha.f90 mkl_lapack95_lp64.lib
S:\LANG\MKL>heha
1.000000 2.000000 3.000000
Fortran Pause - Enter command<CR> or <CR> to continue.
To get the program to work in Visual Studio, you have to use the appropriate configuration option to enable using MKL (at compile time, link time and run time), and specify mkl_lapack95_lp64.lib as an additional library for the linker to scan at link time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for your help ,i have accomplished it , i have modified something about the four thing, and i have modified the direction. finnally, i can run it successfully.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can attach the entire VS solution as a zip file for someone to look at.

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