Access a C library interface from F90 using iso_c_binding
So, I am trying to access a C function from F90, with the following code:SUBROUTINE sub1() USE,INTRINSIC :: iso_c_binding ! interface to c library INTERFACE ! library function prototype ! DBfile...
View ArticleDeallocated pointers still have old shape specifications
I found it odd that deallocated pointers still have their shape information, even though "associated" returns .false. I suppose I expected to get an error, or at least zeroes. Is there a good reason...
View ArticleIntel Fortran Error
Error: A license for FCompW is not available now (-96,491).A connection to the license server could not be made. You shouldmake sure that your license daemon process is running: both anlmgrd.exe...
View ArticleCoarrays and defined assignment
I don't think that this is right! It's not polymorphic ....MODULE Assign IMPLICIT NONE INTEGER :: factor TYPE, PUBLIC :: Mytype INTEGER :: comp = 123 CONTAINS PROCEDURE,...
View Article-axAVX build crashes in Non-AVX Intel processor
Hi,I need to build with option -axAVX using Intel compiler(ICPC C++ compiler),so that i can run on AVX supported Intel processor and also in non-AVX Intel processors.I was able to build...
View Articlecoarray mpd error
The hello work coarray code 1 program Hello_World 2 implicit none 3 integer :: i ! Local variable 4 character(len=20) :: name[*] ! scalar coarray, one "name" for each image. 5 ! Note: "name" is the...
View Articlethe influence from the option -no-vec -no-simd
HI, Could someone tell me the differences between compiler option -no-vec and -no-simd?Do I have to use both options to disable auto-vectorization from the Intel Compiler for some specific files?If I...
View ArticleInconsistency between arguments, Valid ?
Hi,I'm wondering is the following code is valid.I'm defining a type bound procedure which has 2 argument:the passed-object dummy argument with the attribute 'intent(inout)'a integer variable with the...
View ArticleCoarrays and allocatable components again
This may overlap with previous issues, but is simpler.PROGRAM Main TYPE :: Mytype INTEGER, ALLOCATABLE :: ptr(:) END TYPE Mytype TYPE(Mytype) :: coarray[*] ALLOCATE(coarray%ptr(3))...
View ArticleAssignment overloading of the form scalar = vector(:)
Hi,I'm having trouble to define a overloaded assigment using:a scalar variable on the left-hande side anda 1d array on the right-hand side.In other words, I want to do scalar = vector(:).Is this even...
View ArticleDifficulty of compiling fortran code while linking with mkl
Hi,I have been trying to compile my fortran code, where I am using a couple of mkl functions such as dss solver, MKL_DCSRMULTCSR, MKL_DCSRGEMV, etc. Previously I had a similar code, from which I was...
View ArticleHow to Link Against STATIC libc on Ubuntu 13.10
I have been able to get digit for digit identical results on Ubuntu 13.10 x64 vs. Windows, if I compile my code like so: ifort -zero -traceback -static-intel -i8 -O2 -axAVX -ftz -fpe0 -fp-model source...
View ArticleHow to declare `interface` block for MKL functions?
Hi, The following code was successfully compiled but returned wrong result:program main use, intrinsic:: iso_fortran_env, only: INPUT_UNIT, OUTPUT_UNIT, ERROR_UNIT implicit none interface ! returns...
View ArticleDebugging in v15 beta
Is this the right place to ask about debugging in the v15 beta product? I've tried premier support but it says the product is no longer supported.Thanks.
View ArticleError installing on Ubuntu
Hello,I am unable to install Intel Fortran Compiler XE for Intel(R) 64 component on Ubuntu 14.04. It says 'Unsupportted OS' at first. However, if I ignore and continue, select Intel 64 architecture, at...
View Articlecompiling with -ipo takes too much time
Dear all,I am using the following compile line for my makefile however -ipo options takes far longer than without -ipo, what is the reason of this behavior?ifort -ipo -prec-sqrt -prec-div -fp-model...
View ArticleAVX instruction using xmm ?
Hi,I have a question about AVX instruction. I compiled my code using ifort 13 with -O2 and -xHost. I want to enable 256-bit wide AVX to perform four 64-bit floating point operations per cycle.Here is...
View Articlebest ifort equivalent flag to gfortran -O3 -ffast-math?
Hi to everyone,I am parallelizing a MC code written in Fortran using OpenMP. During the development process I used the Parallel Studio Suite with great success (really, I would not be able to do it...
View ArticleVolatile coarrays
The compiler does not seem to be honouring C560 "The VOLATILE attribute shall not be specified for a coarray that is accessed by use (11.2.2) or host (16.5.1.4) association." This is the clearest...
View ArticleBLOCK construct
This does not appear to be supported.PROGRAM Main INTEGER :: x BLOCK VOLATILE :: x x = 0 END BLOCK END PROGRAM Maingerbil.f90(3): error #5082: Syntax error, found...
View Article