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.

intel-fortran
Filter by
Sorted by
Tagged with
-1 votes
0 answers
39 views

"no platform load command" warning

What does this warning message indicate & how can I provide the correct "platform load command"? ld: warning: no platform load command found in '/..../sdgr/..../ftnmmct.f.52.o', assuming:...
dbn's user avatar
  • 13.6k
1 vote
0 answers
28 views

how to automatically generate a Module from a project in Visual Studio

I work with Fortran projects in VS2019. My projects employ many subroutines. I've been advised to put the subroutines into a MODULE to get more help from the debugger and code check. Copying the names ...
Echeban's user avatar
  • 154
0 votes
0 answers
21 views

I'm struggling with the coarray implementation in Intel Fortran Compiler (IFX) 2024 and Visual Studio 17 (Windows 11):

The code is the simple code available in One API documentation for the test of the coarray functionality (reported below). The build of target "coarray2.exe" completes correctly (see image) ...
FabioMN's user avatar
0 votes
2 answers
65 views

Different floating point representations of identical 64 bit double precision numbers

I have some Fortran code which forms a handle from the bit-pattern of a structure. It marks two structures as identical when the handle of each is the same. I am getting different handles for two ...
Arthur's user avatar
  • 3
0 votes
1 answer
48 views

How to set and access a custom pre-processor variable?

I'm working on making a Fortran application run on both Windows and Linux. Up till now, it's been Windows only. For now, the Linux version is entirely terminal-based while the Windows version has a ...
byl's user avatar
  • 65
0 votes
0 answers
57 views

Outout is affected for some weird silly reaons (print command as well as silly declaration of array)

I am new to this community. I am using ifort compiler for my abaqus subroutine. I was using it effortlessly until the last 2 weeks I have been struggling a lot! It is just that my output is affected ...
Biswabhanu Puhan's user avatar
0 votes
1 answer
127 views

Why Intel Fortran + Intel MPI report warn(error) when using MPI_Bcast?

Here is a simple code of fortran with MPI: program mpi_broadcast_example use mpi implicit none integer :: ierr, rank, size, root integer :: a call MPI_Init(ierr) call ...
yaguang liu's user avatar
0 votes
1 answer
58 views

why is there "WindowsSdkDir" not found warnings when I run ifort compiler from cmd prompt in visual studio

I was using visual studio 2008 with parallel studio xe2011 to do fortran code, sometimes I also use visual studio 2022 community version. I set the cmd prompt for ifort compiler in External Tools and ...
Lingai Guo's user avatar
1 vote
0 answers
115 views

Why is Compaq Visual Fortran (CVF) running under WinXP so much faster than gfortran or Intel ifort on Win10Pro 64?

Computer: intel i7-7820 OS: Windows 10 pro 64bit and WinXP pro running in Oracle VM Virtual box Fortran Compilers: Compaq Visual Fortran(CVF) Pro. 6.6.C Intel Fortran ifort version 2024.0.2.27 ...
Dr. H's user avatar
  • 11
1 vote
0 answers
84 views

ifort command-line vs Visual Studio (assumed shape array)

Recently I encountered the following issue: I made this very simple program in Visual Studio Enterprise 2022, Intel® Fortran Compiler Classic 2021.10.0, Windows 10: program test implicit none ...
Monochromatic's user avatar
0 votes
0 answers
64 views

IFORT/IFX differences in (ENx.y) output?

I'm moving some code from the Intel IFORT x86 compiler to the IFX x64 compiler and noticed that the (EN..) format behaves differently. For example a value of 1234567 output using (EN0.6) produces: ...
SAL's user avatar
  • 1,238
0 votes
1 answer
106 views

Fortan subroutine warning in Abaqus (warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators)

I am facing a problem running this specific subroutine cdpm2vumat.f in abaqus. The job log file shows this error. cdpm2vumat.f(677): remark #8291: Recommended relationship between field width 'W' and ...
Minhajul Bari Prince's user avatar
0 votes
0 answers
84 views

Calling fortran executable file from matlab is much slower

I have a fortran code compiled into a exe file. I can run it directly through the command line, or simply call the executable from matlab. This two approaches lead to massively different execution ...
phdstudent's user avatar
  • 1,080
0 votes
0 answers
62 views

How do I integrate old Fortran/VS program into the new products?

I am trying to help with a project from work that was written with Fortran/C++. It is compiled on the native machine using ComposerXE-2011 and Visual Studio 11.0. I have installed on my home computer ...
Christopher Tokar's user avatar
1 vote
1 answer
165 views

Valgrind complains reading from a file

When reading in a file, I usually check if read returns a negative iostat to see if I reached the end of the file. If an intel compiler is used (2022 or 2023 versions of ifort and ifx), Valgrind ...
M0M0's user avatar
  • 228
0 votes
1 answer
124 views

What does `use omp_lib` actually do?

According to this guide, one needs to include use omp_lib to enable openmp functionality. However, if I compile with ifort -qopenmp my code executes fine and I get the expected speed up, regardless if ...
M0M0's user avatar
  • 228
0 votes
0 answers
268 views

"LNK1104 Cannot open file 'kernel32.lib' " when trying to Configure project in CMAKE

I'm trying to configure in CMAKE a C, C++, Fortran project in x64 with Visual Studio 17 2022, if I run it as it is, this error first will appear: Selecting Windows SDK version 10.0.22621.0 to target ...
Violeta Ayon's user avatar
0 votes
0 answers
81 views

How to ensure same precision from gfortran and ifort compiler? For complex functions, to be specific [duplicate]

I am using the following code (filename cf.f90) to write values of some complex functions in output file. I am getting different outputs from gfortran and ifort compiler (I use gfortran -O3 -o cf.exe ...
ZeroTwo's user avatar
  • 307
0 votes
1 answer
150 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
76 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,529
1 vote
1 answer
894 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
66 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
41 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
192 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
  • 161
0 votes
1 answer
108 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
105 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
89 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
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
  • 426
1 vote
1 answer
139 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
  • 161
0 votes
0 answers
126 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
  • 197
1 vote
0 answers
68 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
73 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,529
0 votes
0 answers
635 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
300 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
91 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
24 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
105 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
61 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
49 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
  • 21
0 votes
0 answers
30 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
  • 21
2 votes
2 answers
253 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
19 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
167 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
61 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
  • 21
0 votes
0 answers
63 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
407 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
378 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
381 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
  • 173
0 votes
0 answers
89 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
338 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

1
2 3 4 5
18