Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

IMSL Library

okale1
Beginner
4,464 Views
Hi all,

I have installed the IMSL Library first time on my computer. Now, I try to use it but I could not use. The code I try to compile is below:

PROGRAM MAIN

USE IMSL_LIBRARIES
IMPLICIT NONE
INTEGER ISEED, NCAT, NDFEST, NELM
PARAMETER (ISEED=123457, NCAT=6, NDFEST=0, NELM=1000)
!
INTEGER I, IX(NELM), NOUT
REAL CDF, CHISQ(NCAT+1), COUNTS(NCAT), CUTP(NCAT-1), DF, &
EXPECT(NCAT), P, RNGE(2), X(NELM)
EXTERNAL CDF
!
DATA RNGE/0.0, 0.0/

DATA CUTP/.5, 1.5, 2.5, 3.5, 4.5/
!
CALL RNSET (ISEED)
! Generate the data
CALL RNBIN (5, 0.3, IX)
DO 10 I=1, NELM
X(I) = IX(I)
10 CONTINUE
!
CALL CHIGF (CDF, NELM, X, NCAT, RNGE, NDFEST, CUTP, P, &
COUNTS=COUNTS, EXPECT=EXPECT, CHISQ=CHISQ, DF=DF)
! Print results
CALL WRRRN ('Counts', COUNTS, 1, NCAT, 1)
CALL WRRRN ('Expect', EXPECT, 1, NCAT, 1)
CALL WRRRN ('Contributions to Chi-squared', CHISQ, 1, NCAT, 1)
CALL UMACH (2, NOUT)
WRITE (NOUT,99999) CHISQ(NCAT+1), P, DF
99999 FORMAT (///'0Chi-squared ', F8.4, /, ' P-value ' &
, F8.4, /, ' Degrees of freedom', F8.4)
END
!
REAL FUNCTION CDF (Y)
REAL Y
!
INTEGER I
REAL BINDF
EXTERNAL BINDF
!
I = Y
CDF = BINDF(I,5,0.3)
RETURN
END

The compiler gives an error message at 2nd line that "error #7002: Error in opening the compiled module file. Check INCLUDE paths. [IMSL_LIBRARIES]". Is the problem related to install IMSL Library on my computer?
0 Kudos
38 Replies
Christ_F_
Beginner
1,759 Views
Please attach (see instructions below) the Buildlog.htm from the Debug or Release folder after you do a Rebuild of the solution and it fails.

0 Kudos
Steven_L_Intel1
Employee
1,759 Views
Oh, I missed this before. In the Tools > Options > Intel Fortran > Compilers lists of directories, remove the $ before each line that contains C:: The $ is only for references to environment variables.

So for the Include paths, you would have:

c:Program FilesIntelArray Visualizerinclude
C:Program FilesVNIimslfnl600IA32includedll

and for Libraries:

c:Program FilesIntelArray Visualizerlib
c:Program FilesVNIimslfnl600IA32lib
0 Kudos
Christ_F_
Beginner
1,759 Views
Oh, I missed this before. In the Tools > Options > Intel Fortran > Compilers lists of directories, remove the $ before each line that contains C:: The $ is only for references to environment variables.

So for the Include paths, you would have:

c:Program FilesIntelArray Visualizerinclude
C:Program FilesVNIimslfnl600IA32includedll

and for Libraries:

c:Program FilesIntelArray Visualizerlib
c:Program FilesVNIimslfnl600IA32lib
OK that got me a lot closer to compiling. The new log file is attached. No matter whether or not I used a USE statement or which USE statement I used (imsl_libraries, numerical_libraries) it could not find smaths.lib which I think is a CVF name and must be left over from Visual Studio importing the project file. When I use the command line environment I still get the error message about version 6 not supported.

cf

0 Kudos
Steven_L_Intel1
Employee
1,759 Views
Yes, the library names have changed. Remove all library names you have specified in the project. Add these two lines to your main program:

include 'link_fnl_static.h'
!DEC$ OBJCOMMENT LIB:'libiomp5md.lib'

For the command line, make sure you are starting your session with the "Fortran Build Environment" shortcut provided. If this does not help, please attach a log of a complete command prompt session (starting with the first lines output) to show me what is happening.
0 Kudos
Christ_F_
Beginner
1,759 Views
Yes, the library names have changed. Remove all library names you have specified in the project. Add these two lines to your main program:

include 'link_fnl_static.h'
!DEC$ OBJCOMMENT LIB:'libiomp5md.lib'

For the command line, make sure you are starting your session with the "Fortran Build Environment" shortcut provided. If this does not help, please attach a log of a complete command prompt session (starting with the first lines output) to show me what is happening.
Hi Steve,

Good news. I cleaned out the converted project file and was able to compile and run debug and release versions of the code in the IDE. I did not have success in the command line though and the capture file of the commands I ran and the output is attached.

christ
0 Kudos
Steven_L_Intel1
Employee
1,759 Views
Very strange. Would you please, in this command session, do a:

set > set.txt

and attach the set.txt to a reply?
0 Kudos
Christ_F_
Beginner
1,759 Views
Very strange. Would you please, in this command session, do a:

set > set.txt

and attach the set.txt to a reply?
set.txt is attached. I notice the imsl setup bat is hard wired to identify the OS as Windows Server 2003?

cf
0 Kudos
Steven_L_Intel1
Employee
1,759 Views
The OS identification isn't used for anything important.

I notice that PATH is very long and has some duplicate entries. Try this.

Open a command prompt window. Type this:

SET PATH=
SET LIB=
SET INCLUDE=
call C:Program FilesIntelCompiler11.0�66fortranbinifortvars.bat ia32

Now try the compile.
0 Kudos
Christ_F_
Beginner
1,759 Views
The OS identification isn't used for anything important.

I notice that PATH is very long and has some duplicate entries. Try this.

Open a command prompt window. Type this:

SET PATH=
SET LIB=
SET INCLUDE=
call C:Program FilesIntelCompiler11.0�66fortranbinifortvars.bat ia32

Now try the compile.
Steve,

Sorry, got the same error window as before. I do have a different versions of libmmd.dll on my computer (Matlab and Intel) but the path statement should have fixed all that. In the spirit of voodoo debugging I downloaded a second version of the IMSL Libraries and used the repair option on installation but it did not help.

christ
0 Kudos
Steven_L_Intel1
Employee
1,759 Views
christ, are you building from the command line or from Visual Studio?
0 Kudos
Christ_F_
Beginner
1,759 Views
christ, are you building from the command line or from Visual Studio?
I am building the imsl example programs from the command line according to the directions in the imsl examples directory. When I write my applications I normally use the IDE but I can't validate the imsl installation - see validate directory in the imsl examples.

cf
0 Kudos
Steven_L_Intel1
Employee
1,759 Views
cf, are you the same user as "okale"? I'm getting confused as to who is seeing what.

Please try this from the command line - add the switch /watch after %F90FLAGS% and then attach the output (copy and paste to a text file and attach the text file.)
0 Kudos
Steven_L_Intel1
Employee
1,759 Views
Please also do this. From the command session that gives you the error about Visual C++ 6, type:

cl

and paste the output into a reply.
0 Kudos
Christ_F_
Beginner
1,759 Views
cf, are you the same user as "okale"? I'm getting confused as to who is seeing what.

Please try this from the command line - add the switch /watch after %F90FLAGS% and then attach the output (copy and paste to a text file and attach the text file.)
Steve,

Here is the watch file.

christ
0 Kudos
Christ_F_
Beginner
1,759 Views
Steve,

Here is the watch file.

christ

Steve,

snap of command line session and error window attached. "cl" command always gives:
Microsoft 32-bit C/C++ Standard Compiler Version 10.10.6030 for 80x86

christ
0 Kudos
Steven_L_Intel1
Employee
1,759 Views
Actually, it said 13.10, which is correct. Strange. I think you can ignore that message for now, but there's something else going on. Let me study what you have posted a bit more...
0 Kudos
Marcio_Schwaab
Beginner
1,759 Views
Hi, I have installed Fortran 11, MVS 2008 and IMSL Library in my computer. However, the following error message appears:

"error #7002: Error in opening the compiled module file. Check INCLUDE paths. [IMSL]".

I already have read Installing and using the IMSL* Libraries. Then, I inserted the lines:

A) At the right of Libraries., click the "..." button.
C:Program FilesVNIimslfnl600IA32lib

B) At the right of Includes, click the "..." button.
C:Program FilesVNIimslfnl600IA32includedll

Unfortunately, the problem persists.
What I have to do?
Following there is a simple sample of the program that I am trying to run.

program Console1
use IMSL
implicit none
real T
! Variables

! Body of Console1
T = DTIN( 0.975 , 10.0 )
print *, 'T=', T

end program Console1

0 Kudos
Steven_L_Intel1
Employee
1,759 Views

Replace "use IMSL" with "use NUMERICAL_LIBRARIES".
0 Kudos
Reply