|
|
本帖最后由 ginlpein 于 2024-5-18 00:32 编辑
您好,请问您能贴一下您安装完的机子使用“mpif90 -show”和“mpif90 -v”的输出情况吗?
我是在Rocky 9.3的白板系统上安的,应该不存在自带的mpi系统,甚至没有module, gcc , gfortran。(甚至gcc和gfortran我是在openmpi编译过程中提示需要我才yum安装的)(因为没有module所以也没法module list和module unload)
我的现状和你之前的问题相近,环境变量配置完成以后,“which mpif90”和论坛链接里提到的“mpif90 -show”的输出信息都是成功指向aocc编译好的openmpi ,但是唯独"mpif90 -v“输出指向了gfortran的安装位置,不知道这该咋调整?希望您不吝赐教
- $ which mpif90
- /opt/openmpi-5.0.3/bin/mpif90
- $ mpif90 -show
- gfortran -I/opt/openmpi-5.0.3/include -I/opt/openmpi-5.0.3/lib -L/opt/openmpi-5.0.3/lib -Wl,-rpath -Wl,/opt/openmpi-5.0.3/lib -Wl,--enable-new-dtags -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi
- $ mpif90 -v
- Using built-in specs.
- COLLECT_GCC=/opt/rh/gcc-toolset-12/root/usr/bin/gfortran
- COLLECT_LTO_WRAPPER=/opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/lto-wrapper
- OFFLOAD_TARGET_NAMES=nvptx-none
- OFFLOAD_TARGET_DEFAULT=1
- Target: x86_64-redhat-linux
- Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/gcc-toolset-12/root/usr --mandir=/opt/rh/gcc-toolset-12/root/usr/share/man --infodir=/opt/rh/gcc-toolset-12/root/usr/share/info --with-bugurl=https://bugs.rockylinux.org/ --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-12.2.1-20221121/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-offload-defaulted --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_64=x86-64-v2 --with-arch_32=x86-64 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1
- Thread model: posix
- Supported LTO compression algorithms: zlib zstd
- gcc version 12.2.1 20221121 (Red Hat 12.2.1-7) (GCC)
复制代码 上面是我探查mpif90版本的三个命令的输出信息,感觉指向后续不一样?不知道这环境变量设置算不算生效?
|
|