Attempting to read a record with a smaller array length
Hi everyone,I have a very strange problem while reading a previously written file. I write an unformatted file using the following code !...... SOME PREVIOUS CODE COMPLEX(KIND=8), ALLOCATABLE,...
View ArticleInterop C and Fortran problem
I cannot figure out, why I am not able to pass len argument correctly into c function from fortran (gfortran + gcc handle this code without any obvious problem)simple C function#include...
View ArticleRelocation truncated to fit
Hi,I tried to increase the size of some arrays in COMMON, but when I compile the code I got many messages like this:for_diags_intel.c:(.text+0x13aa): relocation truncated to fit: R_X86_64_PC32 against...
View Articlemakefile can't find ifort, ifort -v returns a license error
I installed Intel(R) Parallel Studio XE Cluster Edition on my system running Ubuntu 14.04.4. I updated my .bashrc files to include /home/chris/intel/bin.which ifort returns:...
View ArticleSegfault for array with both firstprivate and lastprivate clauses
In a computational code that manipulates arrays, I want to have OMP sections. One section will write an array to disk, while another section sorts it. To avoid a race condition, I give the array the...
View Articleopenmp seg fault!!???
Hi community,the code below fail with a seg fault when b is 2,000,000 instead of 200,000.Module ModOne Type :: ClassOne contains Procedure, Pass :: One => SubOne End type ClassOne Private :: SubOne...
View ArticleAllocatable dummy argument marked as non-standard in Intel documentation?
I've always thought that dummy arguments are allowed to have the allocatable attribute in standard Fortran (since 2003). I've used it several times and compiled with the -stand flag with no warnings....
View Articlecheck arguments of called subroutines
Hi all,I am wondering if there is a compiler option which enables to check arguments of call subroutines/functions while compiling (argument numbers or event types). Or maybe a run time tool activated...
View Articleifort: command not found
$ source /opt/intel/bin/compilervars.sh intel64 ~$ ifort ifort: command not foundCan anyone tell me why? Many thanksI had installed the parallel_studio_xe_2016_update2 successfully on Ubuntu 14.04 TLS
View ArticleUnusually long -O3 optimized compile time on specific code
Dear Intel community,below is an example program which takes unusually long time to be compiled with "-O3" optimization (up to -O2 is fine), tested with ifort versions 14.0.3 and 15.0.3. This might be...
View Articlematmul can give wrong results when code is compiled with -O3
The following code produces the correct result when compiled with -O2 but the results can wrong with -O3.$ ifort -O2 test_bug.F90 && ./a.out size(H,2),n 10 10 T HPH...
View ArticleWrong Path in compilers.sh
Hi all,I have struggled setting the DYLD_LIBRARY_PATH in OS X El Capitan with the las install of ifort in command line only.There seem to be a mistake in the installation directories : "/opt/intel//"...
View ArticleBinary Search and Other Alternatives
Hey,I am trying to implement a lookup table based on binary search of the incoming element, and if the element doesn't exist, then pick the nearest element. The problem I am facing is that the loop in...
View ArticleF77 source codes on intel
hii have old source codes in f77, written some 20 yr back. the code in its parent form gets compiled using ifort. however if any change is made or file is edited without disturbing code (say if i...
View Articlelibirng.so: undefined symbol: __intel_avx_rep_memcpy for a mex interface
Dear all,I built the Fortran version of the sparse linear solver library MUMPS without problems. And the examples codes for the Fortran interface seems to work without problems.However I am also...
View ArticleTYPE IS guard for multiple kinds
Is it possible to write a TYPE IS guard for an unlimited polymorphic class, but that matches the type regardless of the kind (for intrinsic types only, naturally). For instanceCLASS(*), INTENT(IN) ::...
View ArticleError #8383
Hello,I am trying to install a software named CosmoMC on my Linux 14.04 OS. This software needs Intel Fortran Compiler to be installed and I have the 16.0.1 20151021 version installed. Now, while...
View ArticleFortran library not rebuilding
Hi I had a working set up consisting of a main program (F77) that calls a bunch of subroutines in a library. Suddenly, it appears that the library is not rebuilding - changes to the main program are...
View ArticleGet a file's absolute path
Is there a native way in Fortran to get a file's absolute path? I feel like this should be something you could obtain with INQUIRE but not currently available.I have spent the last few days trying to...
View Articletrouble in set up Build Rules in Intel Fortran Compiler
Hi,I am a newbie in using intel Fortran Compiler for Mac. I have installed the compiler and follow the tutorial to setup a new project with fortran. When setting Build Rules, I can set the process as...
View Article