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

Redistributable merge module (.msm) file for 11.1.065 version of redistributable libraries?

$
0
0

Is a redistributable merge module (.msm) file available for the Intel Visual Fortran Compiler for Windows 11.1.065 update 6  Redistributable library package for IA32?

 

(I only seem to be able to find the zip archive: w_cprof_p_11.1.065-redist_ia32.zip on the Redistributable libraries for the Intel® C++ and Visual Fortran Compiler 11.1 for Windows page of links.)

 

Thanks.

 


Timeline for MSVS2010 phaseout?

$
0
0

Hi Steve,

Does Intel have a schedule for requiring users to migrate from MSVS2010?  If so, it would be helpful to know so that I can submit a budget request for the upgrade.

Thanks,

David

Older Version of Intel Fortran Compiler

$
0
0

Hello,

 

I installed Intel Parallel Studio XE 2013 SP1 initial release, by downloading older version from the additional downloading section as suggested by you. However, I cannot see the command prompt to copy the target and link it to Abaqus software. Please refer to following link. this is what I want to do. I am able to see it with 2015 latest version but not the one mentioned. Please suggest! I am spending time over it but I am not able to solve the issue!

 

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

 

Thanks,

Aditya

What to buy

$
0
0

My company just purchased me a new PC.  It's Windows 7, 64-bit.  My old PC was Windows XP and I had Compaq Visual Fortran 6.6 with F90SQL and MS Visual Studio 2005.  I installed MS VS 2012 but cannot install Compaq VS 6.6.  My applications that I build will be used by fellow employees.  What product do I purchase so that my Fortran and F90SQL routines work?

EQ

Unexpected results with OpenMP

$
0
0

Now the sequential version of the code works (https://software.intel.com/en-us/forums/topic/559357), I tried to parallelize the loop at line 68 of myprog.f (see attached) using OpenMP.

As before, I use 'ifort -c mymod.f90' to compile the module.

Then I build the program successfully with:

c:\>ifort -openmp myprog.f mymod.obj
Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.3.202 Build 20140422
Copyright (C) 1985-2014 Intel Corporation.  All rights reserved.

Microsoft (R) Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.

-out:myprog.exe
-subsystem:console
-defaultlib:libiomp5md.lib
-nodefaultlib:vcomp.lib
-nodefaultlib:vcompd.lib
myprog.obj
mymod.obj

The programs runs without any error and generates correct results when setting the number of threads to 1 (num_threads(1) at line 63 of myprog) but incorrect results are obtained for some loop iterations when specifying more than one thread, as illustrated on the graph Plot.jpg.

The program performs integration of a function for several values of a variable, and each iteration of the loop I intend to parallelize corresponds to the computation of the integral for one of these values. These integral computations are completely independent, they just start using common input data and the only thing that basically changes from one iteration to the other is the loop index that define variable omega (line 69) and the other variables depending on it. After execution, it therefore provide an integral value for each value of variable omega and this is presented on the plot (Y axis -> value of the integral, X axis -> variable omega).

The blue curve are the correct results, obtained with the sequential version of the code as with num_threads(1). The red line are results obtained with num_threads(2), and shows some peaks with erroneous values. The peaks are not systematically reproducible (i.e., may change from one run of the program to the other).

Before I enter more deeply in the debugging process, do you see any obvious problem/mistake in the code that may explain such results? I defined all variables as private, except the input variables and the output one. I also defined all procedures of the module as recursive as it if often recommended on forums about such topics. From my first tests, I suspect the integration variable (line 772 of mymod) to be at the source of the problem, but without understanding why…

AttachmentSize
Downloadmymod.f90293.46 KB
Downloadmyprog.f2.69 KB
DownloadPlot.jpg88.68 KB

fpconstant issue

$
0
0

I always use /fpconstant to save having to append d0 to all my constants.  As far I was aware this has always worked.  But now it works for one constant but not another.

      program ww
      implicit none
      real*8 :: KTOFShift      = -459.67
      real*8 :: KTOFFact       = 1.8
      write(6,*) KTOFShift
      write(6,*) KTOFFact
      end

gives:

ifort  ww.f90
ww
  -459.670013427734
   1.79999995231628

ifort  ww.f90 /fpconstant
ww
  -459.670013427734
   1.80000000000000

ie. the second constant gets doubled, but not the first.  Why?

Need compiler switch to set variables to 4-bytes in 64-bit build

$
0
0

I have some mixed C/Fortran code in VS2010.  I get different results from the 32-bit and 64-bit builds of the code.  To see if it is a precision problem, I would like to compile the 64-bit  build with a switch that forces the real and integer variables to be single precision (4-bytes).  Are there switches for the C and Fortran compilers to do this?  Please let me know.  Thank you.

Can't get Intel Fortran compiler after installation!!

$
0
0

Hello,

I downloaded the trial version of Intel Parallel Studio XE 2015 Cluster version. It's the update 4 version. And I tried to install it in my computer. However, after I installed it, it only shows some documentations. I couldn't find the tools folder. So I can't use Intel fortran compiler. I wonder what I can do about it. Is this because I am using the trial version?

Thank you so much.  


Unable to download older version

$
0
0

Hello All,

I am looking for Intel Fortran Composer XE 2011 SP1 Update-4 version. I had a student version of latest 2015 version and was just trying to download older version from additional downloads.

I have two queries;

  1. How do I identify the required version. I mean, will it be 2011 update... or 11.1 update....??? in the drop down menu. It is very confusing!
  2. If I try to download some of the older versions, it does not download, i.e. after clicking on the link to download, a page opens, it closes and nothing happens!!!

Please help. I am just trying to figure out how can I get the required version for a while and it's really time consuming!

Thanks & Regards,
Aditya

 

Missing warning for dummy argument with an explicit INTENT(OUT) being used before it is defined.

$
0
0

Consider the following simple code snippet.  Intel Fortran does give a warning if the procedure does not give a value to a dummy argument with an explicit INTENT(OUT) attribute.  However a warning if such a variable is used before being defined is missing; it'll be very helpful if the compiler can warn for this situation as well.

module m

   implicit none

contains

   subroutine foo(i)

      integer, intent(out) :: i

      print *, i

      return

   end subroutine foo

   subroutine bar(i)

      integer, intent(out)  :: i

      print *, i

      i = 1

      return

   end subroutine bar

end module m
Compiling with Intel(R) Visual Fortran Compiler XE 15.0.3.208 [Intel(R) 64]...
m.f90
C:\..\m.f90(7): warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value.   [I]

Build log written to  "file://C:\..\temp\Release\x64\p_BuildLog.htm"
p - 0 error(s), 1 warning(s)

 

how to search entire solution ignoring comments

$
0
0

When using shift-control-f to search an entire solution, is it possible to ignore comments?

Also, where is shift-control-f located on the pull down menu of Visual Studio 2012?

Thanks,

Brian

Brevard, NC

Use of signaling nan

$
0
0

I have been liberally using non-signalling nans as a debug aid. I can use these anywhere an initialization expression is allowed. But having no signalling limits the usefulness of this method.

I tried to make use of the new option Qinit:snan but that is only applicable to local scalars which are a small subset of the cases I need.

I create a parameter for my initialization like this:

real(DP), parameter :: aNaN = 0.0D0 / 0.0D0.

and declare arrays within derived types like this:

type Bar
   real(DP) :: vec(3) = [aNaN, aNaN, aNaN]
end type

So why not change the declaration of aNaN to a signalling version I thought. But having done so it still does not trap.

This code demonstrates that even if my aNaN parameter has the same bit pattern as Qinit:snan it fails to trap assignment. I also tried the portable IEEE_VALUE function to get a signalling nan it it did not trap either.

program TestSignalingNaN
   implicit none

   integer, parameter :: DP = 8
   real(DP), parameter :: aNaN = z'7FFFBADDADBADDAD' !Value from Qinit:snan
   real(DP), parameter :: bNaN = z'7FFC000000000000' !IEEE_VALUE(1.0_DP, IEEE_SIGNALING_NAN)
   real(DP), save :: cNaN

   real(DP) :: a
   a = aNaN
   a = bNaN
   a = cNaN !Only this assignment gets trapped
end program

The setting for fpe: flag does not appear to make any difference.

Invoking constructor of abstract base class in Fortran

$
0
0

I originally posted this question on Stackoverflow (http://stackoverflow.com/questions/30823756/invoking-constructor-of-abst...), but perhaps the Intel community har more knowledge on this topic?

Consider one of the classic OOP examples (see source code at the end of the post):

  • Abstract base class Shape
  • Class Rectangle extending Shape

I have two questions:

  1. In the source code below I've tried to define a constructor for the abstract class Shape using class(Shape), pointer :: this as result without ever allocating the pointer. Is this the correct way of defining a constructor for an abstract class in Fortran?
  2. How can I invoke the constructor of the base class (Shape) in the constructor of the extending class (Rectangle)? Using this%Shape = Shape(xCenter, yCenter) works for non-abstract base classes, but both the Intel compiler and gfortran gives me errors when the result type is class(Shape), pointer (required for an abstract class).
module Shape_mod
    implicit none

    private
    public Shape

    type, abstract :: Shape
        private
        double precision :: centerPoint(2)
    contains
        procedure :: getCenterPoint
        procedure(getArea), deferred :: getArea
    end type Shape

    interface Shape
        module procedure constructor
    end interface Shape

    abstract interface
        function getArea(this) result(area)
            import
            class(Shape), intent(in) :: this
            double precision :: area
        end function getArea
    end interface

contains

    !Correct way of defining a constructor for an abstract class?
    function constructor(xCenter, yCenter) result(this)
        class(Shape), pointer :: this
        double precision, intent(in) :: xCenter
        double precision, intent(in) :: yCenter

        print *, "constructing base shape"
        this%centerPoint = [xCenter, yCenter]
    end function constructor

    function getCenterPoint(this) result(point)
        class(Shape), intent(in) :: this
        double precision point(2)
        point = this%centerPoint
    end function getCenterPoint

end module Shape_mod

module Rectangle_mod
    use Shape_mod
    implicit none

    private
    public Rectangle

    type, extends(Shape) :: Rectangle
        private
        double precision :: length
        double precision :: width
    contains
        procedure :: getArea
    end type Rectangle


    interface Rectangle
        module procedure constructor
    end interface Rectangle

contains

    function constructor(length, width, xCenter, yCenter) result(this)
        type(Rectangle), pointer :: this
        double precision :: length
        double precision :: width
        double precision :: xCenter
        double precision :: yCenter

        print *, "Constructing rectangle"

        allocate(this)
        this%length = length
        this%width = width
        !How to invoke the base class constructor here?
        !The line below works for non-abstract base classes where the
        !constructor result can be type(Shape)
        this%Shape = Shape(xCenter, yCenter)
    end function constructor

    function getArea(this) result(area)
        class(Rectangle), intent(in) :: this
        double precision :: area

        area = this%length * this%width
    end function getArea

end module Rectangle_mod

program main
    use Rectangle_mod
    implicit none
    type(Rectangle) :: r

    r = Rectangle(4.0d0, 3.0d0, 0.0d0, 2.0d0)
    print *, "Rectangle with center point", r%getCenterPoint(), " has area ", r%getArea()
end program main

 

How to control the initial item in VS

$
0
0

When I open a project in Visual Studio, what controls the "initial item"? I have one project which, most of the time but not always, the working item display tries to open a static library item that is a part of the project (and shows as such in the Solution Explorer window) Of course this item contains only object code, so the working window shows only binary stuff in Hex. This has become quite annoying. If I switch to display a source code item and then close VS, the next time I open the project it will start with that item--as I would expect--but this behavior does not stick.

Getting Nan

$
0
0

Hi,

I'm getting NaN as answer for expressions like below

MN1=WTAP/( SQRT(GC*GAMA1/R1)*(1.0+(GAMA1-1.0)/2.0*
     &    MN1**2.0)**((GAMA1+1.0)/(2.0*(1.0-GAMA1))) )

All are real variables and they have real values.

When I simplify the expression , it gives the correct answer. But then I am getting Nan as answer for a another expression. Then I have to simplify it also. 

Please help me.

Thank you. 

Intel visual Fortran Compiler 

 


Bitness of command processor for ifort command prompts

$
0
0

On a 64 bit Windows 7 machine, I've noticed that the various command prompt shortcuts installed with ifort all invoke their startup batch file using "C:\Windows\SysWOW64\cmd.exe".  This means that the resulting instance of cmd.exe is the 32 bit variant, which is then subject to the various filesystem and registry redirections that come into play when hosting 32 bit apps on a 64 bit system.

Is there a particular reason for this?

The difference between the two cmd.exe's is perhaps inconsequential (and this is only relevant to the command processor, not executables invoked from that processor), but there is the odd windows system utility that becomes unavailable as a consequence.

Integrating Parallel Studio XE 2015 with Microsoft Visual Studio ommunity 2013

$
0
0

 

Hello,

I have just installed Intel® Parallel Studio XE 2015 on my Windows 7 professional 64bit PC. My computer has an AMD Athlon II 635 Quad-Core Processor. Visual Studio Community Edition 2013 was previously installed.

I followed these instructions from the window that opened up in Visual Studio after Intel's Parallel Studio XE 2015 was installed:

C:\Program Files (x86)\Common Files\Intel\Parallel Studio XE 2015\Documentation\en_US\professional_edition\welcomepage_studio_xe\get_started.html

Prerequisites

Japanese version of this document.-->To initialize the Parallel Studio tools for Professional, or Cluster editions:

  1. In a command window, cd to <install_dir>\Parallel Studio XE 2015
    By default, <install_dir> is C:\Program Files (x86)\Intel
  2. Run psxevars.bat 

 

at the command prompt I received the following message: 

C:\Program Files (x86)\Intel\Parallel Studio XE 2015>psxevars

Syntax:

 psxevars.bat <arch>

     <arch> must be is one of the following

            ia32               : Setup for IA-32 host and target

            ia32_intel64  : Setup for IA-32 host and Intel(R) 64 target

            intel64           : Setup for Intel(R) 64 host and target

C:\Program Files (x86)\Intel\Parallel Studio XE 2015>

What do I do next and how?

I want/need to run Fortran in a 64bit environment.

Please assume I have little to no programing experience or understanding. However, I must teach myself Fortran. Fortran is not the best language for a beginner to start with, but is necessary for me and my project at this time.

Thanks!

Kind regards,

Liz

 

 

 

 

 

 

 

Some requests for Visual Studio integration enhancements to support the new age of OO Fortran

$
0
0

1. Once you extend a type you can no longer hover over a component to see its value. Adding a watch is time consuming since you need to modify the watch expression to include the full list of extensions back to the base type where the component was declared.

Is it hard to make VS see derived type components the same way the compiler does ? I realize I have asked this before but nothing has come of it and I could not find my previous post.
 

I do not see why Visual studio needs to know about the chain of inheritance. It could show components directly just as we would use them in code, or it could allow both routes to a component like it does in .net languages.

VS gets slower and slower with the length of the watch expression so having components visible directly would improve performance of the debugger.

2. How about making it possible to to view scalar derived type components on arrays of derived types as an array ?

3. Having the watch able to list the contained procedures on an object (derived type instance) might also be useful, again already available in .net languages.

I put the above 3 requests in priority order.

 

Request to support Fortran 2008 inquiry functions of COMPILER_OPTIONS() and COMPILER_VERSION()

$
0
0

I'm wondering whether the inquiry functions of COMPILER_OPTIONS() and COMPILER_VERSION() introduced in Fortran 2008 as part of ISO_FORTRAN_ENV are low-hanging fruit that Intel can grab quickly and support soon in Intel Fortran.  gfortran already supports it.

I think they'll be very useful in our validation work process for all the codes with various versions of compilers; in addition, Intel may also find these very useful in the services it offers toward incident resolution via Intel Premier Support as well as the Fortran forums by allowing and encouraging the customer to make use of these functions.  Could it be that the introduction of Intel-specific FOR_IFPORT_VERSION and FOR_IFCORE_VERSION functions in 16.0 beta compiler implies Intel is already thinking along these lines?!

the compiler commander ifort could not be found

$
0
0

Hello,

I have Parallel Studio XE 2015, Microsoft Visual Basic 2010 Express, Microsoft Visual Studio 2010, & Microsoft Visual Studio Professional 2013 installed.  I have been trying to compile fortran using the Windows SDK 7.1 Command Prompt and it keeps giving me the error that the compiler commander ifort could not be found.  I really don't understand what the issue could be, if it is something to do with the software or just the way I have it set up?  I can easily compile C code so I know that works.

Thanks,

Viewing all 5691 articles
Browse latest View live


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