Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Parallel processing 是否可以使用mpif90和mpirun与fortran 95并行?_Parallel Processing_Fortran_Gfortran_Fortran90_Fortran95 - Fatal编程技术网

Parallel processing 是否可以使用mpif90和mpirun与fortran 95并行?

Parallel processing 是否可以使用mpif90和mpirun与fortran 95并行?,parallel-processing,fortran,gfortran,fortran90,fortran95,Parallel Processing,Fortran,Gfortran,Fortran90,Fortran95,我想知道是否有可能在fortran 95中使用mpif90指令编译并运行一个程序,因为我想使用FORALL指令。另一方面,在fortran 90中,是否可以使用FOR替换fortran 95中的FORALL?应该如何构建FOR循环?您是否想知道mpif90是否只能编译Fortran 90代码,而不能编译Fortran 952003、2008、2018?是的。我不知道mpif90是否能够编译fortran 95,或者是否有其他方法可以在fortran 95中编译并行程序。mpif90中的f90用词

我想知道是否有可能在fortran 95中使用mpif90指令编译并运行一个程序,因为我想使用FORALL指令。另一方面,在fortran 90中,是否可以使用FOR替换fortran 95中的FORALL?应该如何构建FOR循环?

您是否想知道
mpif90
是否只能编译Fortran 90代码,而不能编译Fortran 952003、2008、2018?是的。我不知道mpif90是否能够编译fortran 95,或者是否有其他方法可以在fortran 95中编译并行程序。mpif90中的f90用词不当。如果您有符合任何最新Fortran标准的Fortran代码,那么可以使用mpif90编译它。注意,
FORALL
是Fortran构造,与MPI无关。当然,任何特定的编译器对所有的处理方式都依赖于编译器,并且实际上可能不会并行执行。1)您的意思是,以下指令在Fortran 95中编译和运行程序是正确的吗?mpif90 prog.f95-o prog mpirun-np#。/prog值得注意的是,
forall
在Fortran标准的最新版本中已被宣布为过时,这一状态相当于许多其他语言所称的“不推荐”。查普曼的建议在20年前可能是合理的,但现在充其量是过时的,充其量是误导性的。相反,调查
执行并发