我正在尝试调试Fortran代码。我已经安装了包含iFort编译器和Microsoft Visual Studio的英特尔Parallel Studio XE。在安装英特尔Parallel Studio XE期间,它显示了一条消息,说明它现在已与Visual Studio 2019集成,但当我尝试在Visual Studio中创建新项目时,它没有显示英特尔Fortran编译器的选项,因此我无法创建Fortran项目。关于如何在Visual Studio中使用英特尔Fortran编译器,您有什么建议?谢谢!
我有一些用英特尔fortran编译器ifort编译的fortran代码。当我使用gprof进行配置文件测试时,我发现大部分时间都用于IO操作,我想找到文件的结尾,但我找不到更多关于这方面的文档:
index % time self children called name
<spontaneous>
[1] 20.6 0.07 0.00 _IO_wfile_seekoff [1]
----------------
当尝试在getdp项目上使用cmake时,获取标题中提到的错误。我在Windows中使用Visual Studio Community 2019。我已经安装了Inter编译器。下面是更完整的错误: -- The Fortran compiler identification is Intel 2021.4.0.20210910
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - failed
-- Check for working Fortran compiler: C:/Progr
我有很长的fortran代码,这些代码必须在python中使用。我决定做Fortran->C->Python接口。
我遇到了一个问题:我在Fortran模块中派生了包含以下内容的类型
double precision, allocatable
键入为成员。
当尝试用ifort编译时,我得到了(与gfortran类似的东西):
Each component of a derived type with the BIND attribute shall be a nonpointer,
nonallocatable data component with inte
我下载并安装了以下评估软件:Intel Parallel Studio XE Professional Edition for Fortran Windows.我的系统是64位的Windows7操作系统。在它的安装过程中,我被要求下载并安装:Microsoft Visual C++ 2013 Redistributable(x64)- 12.0.21005。
我正在尝试使用命令行编译我的源文件。
为了识别命令ifort,我添加了以下目录:
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.0.110\windows
我想在Matlab2017b,Win10中编译fortran代码,以获得一个mex文件。有没有人知道如何绕过matlab的限制选择英特尔的编译器,并强迫它使用gfortran?
我有一个简单的fortran代码示例,"timestwo.f“。
#include "fintrf.h"
C======================================================================
#if 0
C
C timestwo.F
C .F file needs to be preprocessed to ge
我注意到Fortran中的列表定向输出write(*,*)的结果依赖于编译器。
实际上,使用以下代码:
program one
real(8), dimension(5):: r1
do i=1,5
r1(i)=sqrt(i*10.0)
end do
write(*,*) (r1(i), i =1,5)
end program one
英特尔编译器ifort给出了换行符分隔的标准输出:
3.16227769851685 4.47213602066040 5.47722530364990
6.32455539703369 7