admin管理员组文章数量:1406308
Hi I'm trying to compile and run a .f90 code using the intel fortran compiler (ifx) and the intel mpi library on a linux HPC.
I'm invoking the compiler through a .sh script with the following lines:
I_MPI_COMPILER_CONFIG_DIR=/mnt/gpfs01/home/ws/wsjt10/3dmpi mpiifort Flowsolver.f90 -o -fc=ifx -config="ifx" Flowsolver
mpirun -np 10 ./Flowsolver
Setting the config enviroment variable to a folder with a .conf file containing the compiler commands:
-O0
-init-zero
-init-arrays
-r8
In my output file I recieve the outputs:
/mnt/gpfs01/home/ws/wsjt10/3dmpi/mpif90-ifx.conf: line 1: -O0: command not found
/mnt/gpfs01/home/ws/wsjt10/3dmpi/mpif90-ifx.conf: line 2: -init-zero: command not found
/mnt/gpfs01/home/ws/wsjt10/3dmpi/mpif90-ifx.conf: line 3: -init-arrays: command not found
/mnt/gpfs01/home/ws/wsjt10/3dmpi/mpif90-ifx.conf: line 4: -r8: command not found
To my knowledge these are valid compiler commands (and I can for example compile a non MPI IFX code with these commands without issue) so I assume the format of the .conf file is incorrect in some way but to be honest I've had no luck trial and erroring it.
Does anyone more experienced with the MPI compiler wrappers know how I would specify compiler commands when running things through the MPI commands.
I have tried both
I_MPI_COMPILER_CONFIG_DIR=/mnt/gpfs01/home/ws/wsjt10/3dmpi mpiifort Flowsolver.f90 -o -fc=ifx -config="ifx" Flowsolver
and
export I_MPI_COMPILER_CONFIG_DIR=/mnt/gpfs01/home/ws/wsjt10/3dmpi
mpiifort Flowsolver.f90 -o -fc=ifx -config="ifx" Flowsolver
In my .sh script (these both do exactly the same thing and both get the same result, ie. command not found errors in the output file).
I've tried the windows format of the compiler options in the .conf file and obviously thats not worked.
There is almost no documentation that explains what I should be doing here.
I am convinced I'm doing something really stupid here so I do apologise if my amateurism shows.
本文标签:
版权声明:本文标题:fortran - Unrecognised compiler commands in a compiler config file ran using the mpiifort command - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745000190a2636929.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论