Questions tagged [intel-fortran]

Questions using this tag should be specific to Intel Fortran, Intel Visual Fortran, and/or Compaq Visual Fortran (predecessor to Intel Visual Fortran), rather than being general questions about Fortran on Intel hardware. The more general "fortran" tag should also be added to questions using this tag.

Filter by
Sorted by
Tagged with
0 votes
2 answers
35 views

Why do I get a segmentation fault problem in this program when the matrix dimension is too large (in ifort)?

I'm making basic linear algebra computations with matrices and vectors in Fortran. I have changed compiler from gfortran to ifort and I've found that when my matrices get too large (specifically when ...
Another User's user avatar
0 votes
0 answers
49 views

Why does accessing an index of 0 length array not throw an out of bounds access violation error?

Using intel fortran oneapi version 2023.0.0.25839. I've turned on all run-time checks using /check:all. If the following throws a "forrtl: severe (408): fort: (2): subscript #1 of the array A has ...
TrippLamb's user avatar
  • 1,432
1 vote
1 answer
64 views

make : ifort : command not found

I am trying to compile a Fortran code on a Linux Ubuntu machine and I'm getting the following error (in bold): calcul@gpuserver:~/dp3D/src$ ./makedp3D Do you want to use standard directory /home/...
Júlia Bonaldo's user avatar
0 votes
0 answers
38 views

Set Timeout for Socket in Fortran and WS2_32

I have a client in Fortran (ifort) which connects to a sockets, sends some data and receives some data. Because sometimes the connected server could halt or terminate I don't want to wait indefinitely ...
why.n0t's user avatar
  • 432
2 votes
0 answers
28 views

Fortran derived type variable containing pointer fields with the shared attribute inside an OpenMP parallel region

I have the following problem: I would like to have access to data that is stored in a derived type with pointer fields. I would like the variable of the derived type to have the "shared" ...
user22593146's user avatar
2 votes
0 answers
68 views

Is this a bug in the Intel Fortran compiler?

I have reproduced some strange behaviour I got when compiling some code with the Intel Fortran compiler ifort by making a minimal example. The strange behaviour also shows up with the newer Intel ...
Rasmus's user avatar
  • 139
0 votes
1 answer
88 views

Fortran 95, How to read blank (letter space) character from the end of the line?

I try to modify my program to read lines that contain blank charaters (written with space) at the end of the line. I'm using Intel compiler (Fortran 95). In the program i'm using the command line: ...
Mikko T's user avatar
-4 votes
1 answer
97 views

Fortran compiler suddenly cannot find "deallocate" [closed]

I am developing a Fortran code and for most of the day have had no problem compiling, linking, and executing. Suddenly, when I try to compile, in the link phase the compiler tells me it can't find &...
bob.sacamento's user avatar
1 vote
1 answer
85 views

Does memory get allocated with Fortran read() with no I/O list?

I am reading an ascii file with Intel Fortran opened as: open(10, file=trim(file_name), status='old', action='read', iostat=ierr, iomsg=msg) To skip some file lines which I do not want to store I am ...
Vitaliy's user avatar
  • 75
0 votes
0 answers
38 views

Intel compiler problems with transpose of large matrices on Windows [duplicate]

This post is clearly related to another one at MPI scatterv crashing for large N occasionally but I have removed all mention of MPI. I am using the Intel compilers (ifort and ifx) from Intel OneAPI ...
lastchance's user avatar
  • 1,494
2 votes
0 answers
35 views

ifort associated unexpectedly returns false on pointer associated with derived type [duplicate]

I have a program that associates a pointer to an instance of a derived type, then checks whether the pointer is associated with the intended object. When I compile this with gfortran (9.2.0), the ...
jhaiduce's user avatar
  • 408
1 vote
1 answer
100 views

Ifort gives segfault in OpenMP parallelized code when passing internal procedure as argument, but not gfortran

I have made a minimal example of my more complex Fortran code where I get segmentation fault when compiling and running with the Intel Fortran compiler ifort and not with the GNU compiler gfortran. If ...
Rasmus's user avatar
  • 139
0 votes
0 answers
116 views

Floating point consistency in a for loop

I have a question regarding consistency of floating point operations, but most resources I find online seem focused on consistency between different runs or different builds, not within the same run. ...
Jasper's user avatar
  • 87
1 vote
0 answers
60 views

Interfacing python from Fortran inside Abaqus subroutine -

I want to implement a kd-tree quick nearest-neighbor lookup inside my Abaqus subroutine. I have a long list of XYZ coordinates that need to be checked against integration points. The subroutine in ...
wmonk's user avatar
  • 11
2 votes
1 answer
69 views

Problem Allocating Logical from Class(*) using Source in Fortran

Is the following valid Fortran Program LogicalAllocation class(*), pointer :: bool allocate(bool, source=.false.) select type(bool) type is (logical) ...
TrippLamb's user avatar
  • 1,432
0 votes
0 answers
178 views

ifort: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ifort)

I am unable to remove the following error as required package is not available in the package manager yum for centos: ifort: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ...
Hari Chand Rathor's user avatar
-2 votes
1 answer
74 views

I can't find ifort exe when I install intel with conda

I installed the Fortran compiler with conda the following comment: conda install -c anaconda intel-fortran-rt. I want to use ifort but I can't find its path and I encountered the following comment: ...
Mahnaz's user avatar
  • 1
1 vote
0 answers
66 views

How to enable the /wrap-margin option for Intel Fortran compiler in VS2022?

I've just started learning Fortran recently. I have a problem of compiler wrapping the line with more than 80 characters in it (in the code below it divides the array on 2 lines). I've found out about ...
Владислав Петри's user avatar
1 vote
0 answers
21 views

Finalizer in Fortran sometimes makes error when it is compiled with oneAPI

I have created a linked list structure used to store four members: ID, row, column, value. The type named MeshGrid is created with five instant variables, two member functions, and finalizers in the ...
yanjun chen's user avatar
0 votes
0 answers
98 views

Problem with derived dummy type, containing allocatable arrays

I have a problem with a subroutine, using a derived type as dummy argument, that in turn, contains allocatable arrays. Here my piece of code: Subroutine SubA( vf, kf) type vfType real*8, dimension(...
JA Esteban's user avatar
-2 votes
1 answer
49 views

Are Fortran derived type members as assumed shape arrays possible?

I need to turn a specific Fortran procedure into a generic one to be used many times without changes. It takes a couple of derived types as dummy arguments, containing several arrays, whose dimension ...
JA Esteban's user avatar
0 votes
0 answers
47 views

There seems to be data loss upon assignment in Fortran

I have a problem after assigning values. There seems to be some data loss upon assignment. Unfortunately, it is difficult to reproduce the problem in a simple example. Let me give an overview of the ...
water's user avatar
  • 11
0 votes
0 answers
29 views

Error after assigning one instance of a derived type to another instance (Coarray Fortran)

My problem could not be reproduced with simple code. So let me post an overview of the problem, and let's see if this generates a solution or a hint. I have a complex derived type (say, emulator_sp) ...
water's user avatar
  • 11
2 votes
2 answers
144 views

Intel/ifort optimization causes segmentation fault

I'm trying to write a mixed-language (C++/Fortran) code in which memory passed from C++ to the Fortran subroutine may or may not be used and so in fact may or may not be allocated. The behavior inside ...
D.B.'s user avatar
  • 23
0 votes
0 answers
14 views

An error associated with lapack installation

I have a fortran 90 file that I am trying to compile with intel mkl. It has matrix inversion functions invoked in it. The installation procedure was smooth. However, I am getting the following message ...
Dabu's user avatar
  • 9
0 votes
0 answers
71 views

How does one get compiler and linker flags in an intel mkl installation?

I just installed intel oneAPI base kit along with oneHPC kit just to be able to use its matrix operation functions. However, the examples directory inside the directory "intel/oneapi/mkl/latest/&...
Dabu's user avatar
  • 9
1 vote
0 answers
38 views

Fortran segmentation fault when deallocating a coarray component of a derived type (bug?)

I get a segfault when trying to deallocate a coarray component of a derived type. This happens after I assign one instance of the type to another. The minimal example is as follows: program mytest ...
water's user avatar
  • 11
0 votes
0 answers
59 views

Convert mpi_allgather to mpi_allgatherv

I have an original version of code in F90, where it was trying to use mpi_allgather to gather vectors of the same length in each CPU. However, I am modifying the code which leads to the length of the ...
Haoran Shi's user avatar
-1 votes
1 answer
161 views

What is the invocation procedure for ifort in an intel oneAPI base installation?

I am trying to use math kernel library of intel along with its fortran compiler, which comes built into the oneAPI basekit. However, the command "ifort" does not work since the terminal ...
Dabu's user avatar
  • 9
0 votes
1 answer
126 views

Unable to compile mkl_dfti.f90

I am trying to use the dft examples provided with MKL. I am trying to compile the program basic_dp_complex_dft_1d.f90, which uses MKL_DFTI module. Since Intel doesn't provide with pre-compiled modules,...
Goutham Vinjamuri's user avatar
2 votes
1 answer
166 views

How to make ifort work on Windows Powershell?

Intel oneAPI command prompt can be invoked and works fine on my computer (Windows 10), but I want ifort work on Windows Powershell. Is there any way to do it?
Raymond's user avatar
  • 98
0 votes
0 answers
80 views

OpenMP wrong results when more than 1 thread used

Preface I know there are many similar titled questions. I read quite all of them, but I post this one since the causes might different from all those cases. And I would appreciate your judgement and ...
mEm's user avatar
  • 353
0 votes
2 answers
150 views

Microsoft.VisualStudio.Setup.Configuration.Native.dll breaks Intel fortran compiler installer

Event log shows the following error. Faulting module path: C:\ProgramData\Microsoft\VisualStudio\Setup\x86\x86\Microsoft.VisualStudio.Setup.Configuration.Native.dll Each time that I run the installer....
UserEsp's user avatar
  • 416
0 votes
1 answer
80 views

Linker, libs, exe and dependencies

Let's say I have projects B to Z which all have project A (which produces a .lib) in their Visual Studio solution. So for instance, Solution B would be: B.sln |______A.vfproj |______B.vfproj Where B ...
CTZStef's user avatar
  • 1,675
0 votes
0 answers
63 views

Execute bash script that loads environment modules (Intel fortran compiler) from within Python

I have a Python script that calls three instances of a program written in Fortran to be run in parallel. I managed to get this set up running with the following code snippet, where f"{sim}.out&...
MathiesW's user avatar
1 vote
0 answers
96 views

Previously working Python NumPy.f2py fails with the latest Intel API Fortran

When I try to rerun a previously successful instance of F2PY using Intel Fortran I receive an error message after it starts the compile. Previously (Apr 2022) on Windows 10 I opened an existing ...
Ian King's user avatar
0 votes
0 answers
90 views

"link: error LNK1104: can not open file 'ifconsol.lib'" ifort

"link: error LNK1104: cannot open file 'ifconsol.lib'" that appears when compiling with ifort. Additionally, the .exe file is not generated. The bin folder is already in the path. I am using ...
luis hernandez's user avatar
0 votes
0 answers
144 views

Changing LD_LIBRARY_PATH has no effect when using Intel OneAPI in Ubuntu

I was trying to compile my code with Intel Fortran compiler in Ubuntu 20. My code needs HDF5 library, which I compiled separately, and I added the HDF5 library into LD_LIBRARY_PATH.After that, my ...
Sam Z's user avatar
  • 1
0 votes
1 answer
267 views

"rc.exe not found" with VS 2022 over and over again

My installation of Visual Studio 2022 somehow does not find my installed "rc.exe" files, even tough they are installed in the propper directories (e.g. C:\Program Files (x86)\Windows Kits\10\...
FredericM's user avatar
0 votes
0 answers
102 views

Is it normal that compiling with intel fortran is very slow. How to fix the slow compiling issue?

Compiling with intel fortran seems very slow. How to fix the slow compiling issue? It is much slower than gfortran on my computer. I did some google search, but did not find any relevant information ...
David Hansen's user avatar
1 vote
0 answers
189 views

Nvfortran and gfortran are roughly 10 times slower then intel for OpenMP matrix multiplication code

I can’t figure out why the following OpenMP fortran code for matrix multiplication runs roughly 10 times slower if compiled with nvfortran or gfortran compare to intel. module load intel nvhpc/21.9 ...
Ilkhom Abdurakhmanov's user avatar
0 votes
2 answers
222 views

What could be the cause of "output statement overflows record, unit -5, file Internal Formatted Write"error?

Dear Stack over flow community, I am running a simple simulation with KPP processor and after the 9th output .dat file (out of 150) the simulation terminates with the following error message: forrtl: ...
GiorgioT's user avatar
-1 votes
1 answer
81 views

Difference in trailing underscores in library symbols when building netcdf-fortran-4.2

I need to recompile netcdf-fortran-4.2 with intel-fortran in order to move it. I have successfully rebuilt its dependencies hdf5-1.8.11 and netcdf-4.3.0. I am compiling this in an HPC environment, ...
Gabriella Turek's user avatar
0 votes
0 answers
166 views

VScode jupyter kernel died when write large data into 2D fortran array with f2py subroutine

I cannot fortran-read to 2D fortran array in specific case (ifort+f2py compile -> load and execute that subroutine in Jupyter VScode). I suspect that compile stage with ifort could have problem. Is ...
SY Jeon's user avatar
  • 29
0 votes
0 answers
72 views

Override fvisibility in Fortran routine

In a shared object, I can make my Fortran routines unavailable from outside using -fvisibility=hidden. In C/C++ you can override this setting in your routines by void __attribute__ ((visibility("...
Mads M Pedersen's user avatar
0 votes
1 answer
107 views

Parallelization of an openMP nested do loop using ifort

I have a nested do loop in an openmp fortran 77 code that I am unable to parallelize, when doing the command export OMP_NUM_THREADS=14, the more threads I add the worse the results, when its " 1 &...
ggt bnd's user avatar
3 votes
1 answer
87 views

Using function result as character length in Fortran

Consider the following minimal working example: module lib type t contains procedure::f,g end type contains integer function f(this) class(t),intent(in)::this f=...
V T's user avatar
  • 103
2 votes
1 answer
80 views

Relative include paths of different Fortran preprocessors

Consider the following directory tree: test.F90 test/ ├─ a.inc └─ b.inc With the following file contents: test.F90: #include "test/a.inc" end a.inc: #if defined(__GFORTRAN__) | defined(...
V T's user avatar
  • 103
0 votes
2 answers
387 views

Abaqus 2020 Linker error with Intel OneAPI Fortran Compiler

Installation steps: Installed Visual Studio Community 2019, ensured Desktop C++ development is selected. Installed OneAPI Basic and then HPC. Installed Abaqus 2020. Added the path of ifort to ...
Jesse Feng's user avatar
0 votes
1 answer
78 views

Are dependences backwards compatible for a given compiler or does this result in some sort of undefined behavior?

I have code that was compiled with Intel version 2020.4.304 on Linux SLES 12. Over time various other versions have been added and I switched to default to OneAPI version 2021.1.1. On Windows when I ...
Matt's user avatar
  • 2,574

1
2 3 4 5
18