Quantcast
Channel: Intel® Software - Intel® Fortran Compiler for Linux* and macOS*
Browsing all 2746 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Character array constructor with len=* bug?

I am running version: ifort (IFORT) 12.1.5 20120612My problem is basically that when characters are passed to a subroutine with len=*, the array constructor does not automatically take the maximum...

View Article


Compiling multiple source code files with one source code contains OpenMP...

I'm trying to compile multiple FORTRAN source files, where I applied some OpenMP directives to one of the source files. For instance : The compilation flags :COMPILE00='ifort -O3 -openmp -openmp_report...

View Article


Image may be NSFW.
Clik here to view.

possible bug with coarray lock_type

I think this is a compiler bug, but I am not 100% confident in my reading of the standard, particularly C1304 in 13.8.2.16.consider the following snippet:soln = soln%scalar_mul(2.0)where soln has a...

View Article

Assembler documentation?

Hi, Thank you for the Intel's Fortan Composer/XE. It's wonderful to have such a fantastic compiler for learning modern Fortran. I would like to use the assembler in addition to Fortran. I understand...

View Article

how to check if the array is aligned at 64 byte

I use the directive to align the array at 64 byte, and I want to check whether this works. The following code is my try. However, it is likely that the alignment directive doesn't work because the mod...

View Article


Best way to write to fixed field format

Dear all,I am looking at the best way to write float and double value to a fixed filed format string (say 8 in length).Over the year we have tried different format depending on the data but with the...

View Article

Expected behavior of type-bound operators

HiIf I compile the following code with ifort 14.0.3module abmod implicit none type :: a integer :: value contains procedure :: assign => a_assign generic :: assignment(=) => assign end type a...

View Article

options for debugging and performace evaluation

Dear all,What are the most common 'MUST' options for debugging and a subsequent performance evaluation on linux?Best regards,Umut

View Article


Problem with open statement using non-associated pointer argument

Hi,I'm trying to call the open statement with some specifiers which are non-associated pointer variable.Since the specifier in the open statement are optional arguments, calling the open statement with...

View Article


File not find during link

I'm working in a Linux system ( Ubuntu 12.04 ), using ifort linking the main program main.f90 and library lib.a. If I use commandifort main.f90 /home/tom/lib/lib.athen everything is fine. But if I...

View Article

OpenMP parallel do simd collapse problem

Dear all,when compiling the following demo codeprogram collapse implicit none real, dimension(1000) :: data1 = 1.0e0 real, dimension(100,10) :: data2 = 1.0e0 integer :: i,j !$omp parallel do simd do...

View Article

Equivalence behavior across Windows and Linux for legacy code from VMS

I have inherited some FORTRAN from VMS. It looks like it moved from VAx to Alpha/AXP and now headed to Window 7 and later and to Linux Redhat 5x and later. Building on VMS/Alpha with check/all reveals...

View Article

Selective use of OpenMP features

Is there a standard/recommended way to use OpenMP features selectively depending oncapabilities of the compilercapabilities of the hardwareWhat I mean is the following. If I write a code that should be...

View Article


memory leak of function returning polymorphic allocatable with allocatable...

The following code results in a memory leak when compiled with ifort 14.0.3module testmod type :: obj integer, allocatable :: i contains procedure :: add => obj_add procedure :: copy => obj_copy...

View Article

iso_c_binding and indefinite number of arguments

Hello,I am trying to call a C subroutine with an indefinite number of arguments from a Fortran code. I have written something that work ok when using gcc/gfortran (various versions) but I get a...

View Article


local type(c_ptr) in a multithreaded code

Hello,I'm having a few issues with a type(c_ptr) variable declared inside a routine which is called by multiple threads at the same time. I managed to reproduce the problem in a small code with OpenMP...

View Article

output of gfortran compiler vs ifort compiler

This is my code and the name of the file is comp.f:      program comp      complex    :: x      x=(6.3,1.0)      print*,x      end program compIf I compile it with ifort "ifort comp.f", when I run it...

View Article


getenv and setenv subroutines in Fortran

Does the Intel Fortran compiler have Fortran wrappers for getenv and setenv subroutines? If so, which link flag should I use to obtain them?

View Article

Passing a null pointer to a subroutine fails with segv

!================================================== ! ! Compile and run using: !  ifort optional-bug.f90 !  ./a.out !================================================== program option   implicit none...

View Article

Strange behaviour of private variable with OpenMP

Dear Intel users,I have a strange behaviour with a PRIVATE variable. I'm using Intel Ifort 14.01My program has many lines of code, so I report a snippet that summarize the situation. In the main I have...

View Article
Browsing all 2746 articles
Browse latest View live