Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all 5691 articles
Browse latest View live

Cannot regconize operator when migration from Compaq visual Fortran 6.1 (CVF) to Intel Visual Fortran (IVF)

$
0
0

I am newbie in Fortran. I have to convert  fortran src code from Compaq visual fortran 6.0 to Intel visual fortran 2018. 

I follow step by step in https://software.intel.com/en-us/articles/migrating-from-compaq-visual-f... but when build, the error about the compiler does not regconize the operator "<>" (NEG) is displayed. When I change all the error point from <> to /=, it build success but the whole library is quite huge and I thought, maybe have some kind of option will make me don't have to change line by line. Anyone have any idea  about the root cause of this error, please let me know.

P/S: all the source code extension are .for and .f

Thank in advances


Linking against older runtime libraries

$
0
0

Hello,

I am building a sparse linear solver library which we need to run inside Matlab R2015b. This means that at runtime the runtime libraries of Matlab will be the ones the dll loads. When I build the dll with MSVS2017 + Intel Parallel XE 2018 the fortran compiler defaults to link against the latest fortran and openmp libraries, this causes Matlab to crash at runtime. The runtimes that ship with Matlab R2015b are the Intel ones from 2013, so my solution to get it working was to build my library using Intel Composer XE 2013, but this forces me to use an older MSVS (I used 2010). Is there a way to use the current compiler (which I assume does some better optimisations than the 2013 one) and force it to link against older runtimes? I was not able to figure out a way to do this, and my current method does not seem to be the most elegant solution, not to mention that I have to rely on the MSVS 2010 runtimes (later versions would not allow compiler integration) to be available/supported for eternity.

I hope there is a better solution.

Thank you!

Manuel

Intel Fortran Compilation Error

$
0
0

To whom it may concern,

As I am using the following intel directive in usermat.f90 file:

!DIR$ include impcomEjb.inc

I get the following error message in compile.log file:

 

Intel(R) Visual Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.1.156 Build 20171018

Copyright (C) 1985-2017 Intel Corporation.  All rights reserved.

 

usermat.f90

usermat.f90(148): remark #5082: Directive ignored - Syntax error, found CHARACTER_CONSTANT 'impcomEjb.inc' when expecting one of: :

!DIR$ include "impcomEjb.inc"

--------------^

Intel(R) Visual Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.1.156 Build 20171018

Copyright (C) 1985-2017 Intel Corporation.  All rights reserved.

My files are attached to my message.

Could you please help to troubleshoot this error message?

Thank you for your time and kind concern.

 

 

 

AttachmentSize
Downloadapplication/zipUser.zip5.79 KB

Keeping the same seeds for random numbers with OpenMP loop

$
0
0

I have an OpenMP paralelized loop. I would like to be able to replicate experiments everytime I run the program. The program calls a lot of random numbers. The issue is given the nature of parallelization I cannot replicate the experiments from one run to the next run. Is there anyway of doing this? I can see two options:

1) Call all the random numbers before executing the paralelized loop (I really would like to avoid this option as potentially the number of random numbers to be generated could be unknown at the time one enters the loop);

2) Have an option to fix the seeds for each thread. This is something that is possible in matlab very easily by setting a seed that depends on the index of the parallelized loop. E.g:

%% Matlab example

parfor k = 1:nsim
   rng(k, 'twister');
end

Below a minimal working example of something similar to what I am running:

%% Fortran minimal working example

program mwe 
use tools
implicit none

integer :: ind1, ind2, ind3
integer :: n1 = 1000, n2 = 750, n3 = 300
real :: mu, mu1=0.01, mu2=0.02, sigma, sigma1=0.20, sigma2=0.40
real :: aux
real, allocatable :: z(:,:,:)
allocate(z(n1, n2, n3))


!$omp parallel do default(private) shared(n1, n2, n3, z, mu1, mu2, sigma1, sigma2)
do ind1 = 1,n1
    
    
    do ind2=1,n2
    do ind3 = 1,n3
    
         call RANDOM_NUMBER(aux)   
         if (aux .le. 0.5) then
                mu    = mu1
                sigma = sigma1
         else
                mu = mu2 
                sigma = sigma2
        end if
    
        z(ind1,ind2,ind3) = normal(mu,sigma)
        
        
    end do
    end do
    
end do
!$omp end parallel do
ind1 = 1

end program



MODULE tools

contains 
    
    
    function ran1()  !returns random number between 0 - 1 
        implicit none 
        real :: ran1,x 
        call random_number(x) ! built in fortran 90 random number function 
        ran1=x 
    end function ran1
    
    function normal(mean,sigma) !returns a normal distribution 

        implicit none 
        real :: normal,tmp 
        real :: mean,sigma 
        integer flag 
        real :: fac,gsave,rsq,r1,r2 
        save flag,gsave 
        data flag /0/ 
        if (flag.eq.0) then 
        rsq=2.0 
            do while(rsq.ge.1.0.or.rsq.eq.0.0) ! new from for do 
                r1=2.0*ran1()-1.0
                r2=2.0*ran1()-1.0 
                rsq=r1*r1+r2*r2 
            enddo 
            fac=sqrt(-2.0*log(rsq)/rsq) 
            gsave=r1*fac 
            tmp=r2*fac 
            flag=1 
        else 
            tmp=gsave 
            flag=0 
        endif 
        normal=tmp*sigma+mean 
        return 
    end function normal
    
    
end module

    

Error code: 1603 - Windows Installer

$
0
0

To whom it may concern:

I would appreciate assistance.

I have to install Intel Parallel Studio XE 2016 with Visual Studio 2015 in order to be able to compile Fortran sub-routines for MSC Marc 2017.1. This version of MSC Marc does not allow newer versions to be installed.

I believe I have installed MS Visual Studio 2015 as required. Please see image attached and text file of installed list. However, when I try to install the above version of Intel, I receive the message as seen in this attached screen shot. I have attached the log file as a zipped file.

I am running Windows 7 Professional 64-bit Service Pack 1.

Any assistance would be most welcome.

Thank you.

Gary

 

 

 

IMSL, MKL, matrix operators question

$
0
0

A code I'm working on uses matrix operations like  A = B .x. C and A = B .ix. C and A = B .tx. C

My understanding is that this is enabled by IMSL.  If that's right, does MKL also enable this, or is there another way?  My sponsor is telling me that distributing our code with IMSL requires buying an IMSL license for every user.  So he's asking me to eliminate IMSL.

Sample program REALG output is not as described

$
0
0

I am trying to develop a Quickwin program that has its output in a single window (probably the project frame with menus and status bar removed; OK I can do that), with scrollbars. When I run the program I get the output in a child window, somewhat smaller than the project frame, with truncated visibility and scrollbars. When the program ends I can maximize this child window by clicking on the size box in the upper right corner, which produces the right effect. I don't want my users to have to do this manually. How can I maximize the window programmatically?

I remember minimizing a child window programmatically, but I don't remember how and I cannot find it in the documentation. I assume there is a similar command to maximize a window. Can anybody help?

Intel Fortran 16.0.1

$
0
0

Hi,

I need to download Fortran 16.0.1 to test some software (free trial is good for now) , but it seems I can only download Intel Parallel studio XE 2016 cluster edition which has Fortran 16.0. How can I get 16.0.1 version?

Thank you,

Subin


Student version of Fortran won't accept license codes

$
0
0

I work at a University, we have a number of students wanting to use Fortran; specifically older versions (2013) due to compatibility issues with other software. When they register and get their license codes, Fortran doesn't accept the license keys. The message returned is always "Activation rights do not allow this software to be installed. This could be due to expired subscription or incompatible serial number."

 

I see there are a number of the same problem in your forums and site, but have yet to see a solution. These are freshly requested keys, not ones that have aged, also the software was downloaded from the Intel site immediately before trying the registration.

 

This is on both Windows 7 and Windows 10 machines.

Code Coverage output

$
0
0

I like to generate HTML code coverage output for my project, it looks good with color coding and everything. 

Lately though it is becoming quite cumbersome because I need to be able to quickly and programmatically access information about code coverage for my run. I've been using lxml to query the output html files and get information about which lines are covered and compare for different runs, but I'd like to see if there is a better and more efficient way to do this.

What underlies the HTML files that are generated? Is there a lower level file that provides the information about which lines are covered from what files from which I can get this information programmatically using python but without having to resort to far fetched solutions like querying the coverage file?

Thanks.

Heads-Up RE: VS 2017 update

$
0
0

Colleagues,

I opened VS 2017 Professional Edition this morning to start work . . . A notification appeared above the ribbon bar saying a VS 2017 update was available. I initiated the update (foolishly, perhaps). After the update and re-opened VS to find that the Fortran installation of Release 18.01 had been removed -- or at least no longer present/available. Any Fortran-based .sln files are no longer recognized as compatible.  'ware!  'ware!  as they used to say.

one user experince with intel Application Performance Snapshot

$
0
0

 

I saw some Intel announcements about APS Application Performance Snapshot and seemed worth trying out to find performance issues with our in house code base.  It is 600 K lines, 14 executables, runs on windows (finally x64!!) and Linux (double !!).  Windows builds in MS visual studio 2015 and Intel Fortran and C 17.1.   I read somewhere I should compile with usual release optimization but add /debug to compile/link.   I build the debug version for reference and ran it in visual studio no problems.  running the x64 windows release (with /debug) inside the aps bat script, I got access violations.  Ye ole adding a print statement nearby got past one access violation, then another, then another,...  So I tried running the debug build (x64 Debug) under aps and got another access violation even though it had run in the VS debugger.  Next I ran the same debug exe as I had run under aps.bat and just removed the aps.bat to run the exe alone.  Its running fine.   I am not expecting a fix since I can't share the source.  Just sharing what my first experience with APS was.   I will likely repeat the process on Linux with version 17.1.   Not that I would turn down suggestions.

 

thanks,

Scott

 

IMSL Version 6 linking errors

$
0
0

I am migrating a CVF application to Win32 IVF wit VS2013. When linking I get the messages:
1>Linking...
1>LIBCMT.lib(invarg.obj) : error LNK2005: "void __cdecl _invalid_parameter(unsigned short const *,unsigned short const *,unsigned short const *,unsigned int,unsigned int)" (?_invalid_parameter@@YAXPBG00II@Z) already defined in LIBCMTD.lib(invarg.obj)
1>LIBCMT.lib(invarg.obj) : error LNK2005: "void __cdecl _invoke_watson(unsigned short const *,unsigned short const *,unsigned short const *,unsigned int,unsigned int)" (?_invoke_watson@@YAXPBG00II@Z) already defined in LIBCMTD.lib(invarg.obj)
1>LIBCMT.lib(invarg.obj) : error LNK2005: __call_reportfault already defined in LIBCMTD.lib(invarg.obj)
1>LIBCMT.lib(invarg.obj) : error LNK2005: __get_invalid_parameter_handler already defined in LIBCMTD.lib(invarg.obj)
1>LIBCMT.lib(invarg.obj) : error LNK2005: __initp_misc_invarg already defined in LIBCMTD.lib(invarg.obj)
1>LIBCMT.lib(invarg.obj) : error LNK2005: __invalid_parameter already defined in LIBCMTD.lib(invarg.obj)
1>LIBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in LIBCMTD.lib(invarg.obj)
1>LIBCMT.lib(invarg.obj) : error LNK2005: __set_invalid_parameter_handler already defined in LIBCMTD.lib(invarg.obj)
1>LIBCMT.lib(invarg.obj) : error LNK2005: ___pInvalidArgHandler already defined in LIBCMTD.lib(invarg.obj)
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Debug/CaFeMS1-IVF.exe : fatal error LNK1169: one or more multiply defined symbols found

I have followed the advises given in the document "Installing and using the IMSL libraries" by Steve. This document was updated April 18, 2016 so it might not be valid for the program versions I have ?

My compiler is from: w_fcompxe_2013_sp1.1.139
Intel(R) Visual Fortran Compiler XE for IA-32, version 14.0.4 Package ID: w_fcompxe_2013_sp1.4.237

IMSL from : w_fcompxe_imsl_2013_sp1.0.003

In the main program, I put

INCLUDE 'link_fnl_static.h'
!DEC$ OBJCOMMENT LIB: 'LIBIOMP5MD.LIB'

Include files are:
$(IFortInstallDir)compiler\include
$(IFortInstallDir)compiler\include\ia32
$(IFortInstallDir)mkl\include
$(VCInstallDir)atlmfc\include
$(VCInstallDir)include
$(WindowsSdkDir)include\um
$(WindowsSdkDir)include\shared
$(FrameworkSDKDir)include
$(FNL_DIR)\IA32\include\dll

Library files are:
$(IFortInstallDir)compiler\lib\ia32
$(IFortInstallDir)mkl\lib\ia32
$(VCInstallDir)atlmfc\lib
$(VCInstallDir)lib
$(WindowsSdkDir)lib\winv6.3\um\x86
$(FrameworkSDKDir)lib
$(FNL_DIR)\IA32\lib

Can anybody give me a tip ?

forrtl: severe (172): Program Exception - exception code = 0x4352 (17234)

$
0
0

We have an application that produces the above run-time error.  Here is the full exception output:

forrtl: severe (172): Program Exception - exception code = 0x4352 (17234)

Image              PC                Routine            Line        Source            

KERNELBASE.dll     000007FEFCE3A06D  Unknown               Unknown  Unknown

clr.dll            000007FEF8735E67  Unknown               Unknown  Unknown

clr.dll            000007FEF85389DF  Unknown               Unknown  Unknown

mscoreei.dll       000007FEF8B688CA  Unknown               Unknown  Unknown

mscoreei.dll       000007FEF8B76731  Unknown               Unknown  Unknown

mscoreei.dll       000007FEF8B550EE  Unknown               Unknown  Unknown

Abc.exe            000000013F3FEC97  Unknown               Unknown  Unknown

Abc.exe            000000013F450732  Unknown               Unknown  Unknown

Abc.exe            000000013F450C8C  Unknown               Unknown  Unknown

kernel32.dll       0000000076DE59CD  Unknown               Unknown  Unknown

ntdll.dll          000000007701A2E1  Unknown               Unknown  Unknown

According to http://geco.mines.edu/guide/Run-Time_Error_Messages.html, this is an operating system error, but that really doesn’t help us diagnose the problem.  The worst part of it is that the error 1) only happens on some machines and not others, and 2) only happens occasionally without any pattern I’ve been able to discern.​  I have never been able to reproduce it in a controlled environment.

My Fortran is, to say the least, rusty.  However, I have vague memories that back when I used Fortran more regularly, there was a tool that would allow me to enter the address of the error (i.e. the number in the “PC” column above) and it would take me to the location in the code corresponding to that address.  Does such a tool/utility exist?  I don’t see anything in Visual Studio that does this.

If we can’t get anything from the error message above, the only next step I can think of is a lot of logging/debug statements in the application.​  I am very reluctant to do that for a variety of reasons.

Any help would be much appreciated!

Thanks!

Brad.

IBM 1401 compiles and runs FORTRAN II

$
0
0

Next time you complain about your program compile times take a look a this:

https://www.youtube.com/watch?v=uFQ3sajIdaM

FWIW the first Fortran programs I wrote were in Fortran II, I also wrote in Fortran-D, these were run on a Digital Equipment Corporation PDP8-I and PDP8-L minicomputers. A year later (I think) we updated to Fortran IV. The PDP8-I had card reader, the PDP8-L had paper tape (10cps).

Jim Dempsey


LIBUCRTD.LIB

$
0
0

I finally started running some Fortran programs on my new computer.  I have tried VS 2015, 2017 and 2017 preview.  I keep getting an error that it cannot find the libucrtd.lib.  I look for the lib and find many copies of it in Windows 10, but none are on the path created by Intel Fortran 2018 Update 1. 

It is solvable using a direct link on the project properties, but clearly I am missing something.

I ran the ps*.bat files - but this does not fix the problem.

Any ideas

John

OPEN statement file names

$
0
0

I am try to link a file to a unit in an OPEN statement.  I get an a error message that the system could not find the default file.

statement in program

OPEN(Unit=20,file='C:\clients\UNCC\METR 4105\homework\#6\CHS_Oct2_2015_raob_soundings.txt',Status='OLD',Action='READ',IOSTAT=Ierror)

error message

forrt1: severe(29): file not found, unit 20, file C:\users\my.name\source\repos\console9\console9\fort.20

it appears to be looking for the default file name , which does not exist - rather than the file I created

Linking Visual Fortran to Visual Studio 2013

$
0
0

Hello, 

I seem to have an issue with linking some files. There seems to be a LNK2019 error defined as acar_solver_vesion.obj: error LNK2019: __imp___acrt_iob_func referenced in function printf.

acar_solver_vesion.obj: error LNK2019: __imp___acrt_iob_func referenced in function printf.

acar_solver_vesion.obj: error LNK2019: __imp___stdio_common_vprintf referenced in function_ vfprintf_1.

Could you please help me in understanding these errors. Is it an issue with ADAMS or the FORTRAN code or linking the FORTRAN code with Visual Studio and how do I solve such an issue.

Error LNK2019 external symbol system@8_

$
0
0

Good afternoon. I am trying to run an EXE external file with the command RESULT = SYSTEM('programa.exe') but the code is returning the code:

error LNK2019: unresolved external symbol _SYSTEM@8 referenced in function _MODELO Modelo.obj

I looked up some solutions but I couldn't find anything usefull.

MKL equivalent to imsl lin_sol_gen

$
0
0

Is MKL/gesv an appropriate replacement for IMSL/lin_sol_gen?  I believe both do an LU decomposition to get the solution.  If I merely replace CALL LIN_SOL_GEN(A,B,X) with CALL GESVX(A,B,X), how close should I reasonably expect the solutions to match for double precision problems with, say 100x100, coefficient matrix. 

Viewing all 5691 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>