- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a problem when using both LAPACK and BLAS libraries in my program.The error suggests that
/opt/intel/Compiler/11.1/059/mkl/include/lapack.f90(26): error #5509: Declaration of routine 'F95_PRECISION' conflicts with a previous declaration
MODULE F95_PRECISION ......
The statement I used is
INCLUDE 'blas.f90'
INCLUDE 'lapack.f90'
.....
USE F95_PRECISION, ONLY: WP => SP
use blas95
USE LAPACK95
......
Apparantly, both blas.f90 and lapack.f90 have declared the module "F95_PRECISION". I need to use the routines in both libraries, so how do I ask the compiler to use only one of the declarations? Thank you very much.
Jun
I have a problem when using both LAPACK and BLAS libraries in my program.The error suggests that
/opt/intel/Compiler/11.1/059/mkl/include/lapack.f90(26): error #5509: Declaration of routine 'F95_PRECISION' conflicts with a previous declaration
MODULE F95_PRECISION ......
The statement I used is
INCLUDE 'blas.f90'
INCLUDE 'lapack.f90'
.....
USE F95_PRECISION, ONLY: WP => SP
use blas95
USE LAPACK95
......
Apparantly, both blas.f90 and lapack.f90 have declared the module "F95_PRECISION". I need to use the routines in both libraries, so how do I ask the compiler to use only one of the declarations? Thank you very much.
Jun
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rather then INCLUDE those files, just have the USE lines and make sure that the "ia32" or "intel64" subfolder of the MKL include folder is in your -I list. The modules are precompiled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I figured that out. Thank you very much.
![](/skins/images/54BF544B471F3F61DFD338F1D58F9426/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page