Spurious segfault on deallocation with 14.0.2 compiler
When compiled with the 14.0.2 compiler, the following test code segfaults on the clearly valid DEALLOCATE statement. Ā This code is a variation of the example I reported in...
View Articleassociate contruct vs. accessing directly the type components
Hi,I am unable to compile the following code:$ ifort -c tst.f90tst.f90(27): error #6780: A dummy argument with the INTENT(IN) attribute shall not be defined nor become undefined.Ā Ā [AT1]Ā Ā call...
View ArticleOpenMP threads and cores on OS X 10.9.3
I have an OpenMP code that is compiled with ifort version 14.0.3.166 on a quad-core Macbook Pro running OS X 10.9.3. Ā All the work is done in a simple parallel DO region, and I have not requested any...
View ArticleOpenMP FIRSTPRIVATE causes unusual behaviour
Dear Community,I'm asking your help with an OpenMP related parallelization problem. The following code is considered:PROGRAM testfpr IMPLICIT NONE INTEGER :: i, j i = 1 j = 2 CALL sub1( i, j ) END...
View ArticleSSE Instruction Generates Floating Point Exception
Hi: I've been trying to improve the robustness of our code. To that end, I enabled (maybe unmasked is the right word) floating point exceptions. However, when optimization is turned on, the code seems...
View Articlesegmentation violation
Hi.I got the following error message when I use these debugging flags: -g -check all -fpe0 -warn -traceback -debug extendedfile.28.f90: catastrophic error: **Internal compiler error: segmentation...
View ArticleO3 optimization gives incorrect results for allocatable arrays and nested loops
I experienced a problem when usign -O3 optimization on code with nested loops acting on allocatable arrays. The following shows a minimal example of my code:--->main.f90program main use norms...
View ArticleCharacter 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 ArticleCompiling 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 Articlepossible 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 ArticleAssembler 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 Articlehow 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 ArticleBest 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 ArticleExpected 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 Articleoptions 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 ArticleProblem 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 ArticleFile 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 ArticleOpenMP 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 ArticleEquivalence 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 ArticleSelective 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