Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

WRFv4.6.0 fails to build on Ubuntu 24: Modules not found

William.Hatheway

Active member
Trying to build WRFv4.6.0 on Ubuntu 24 and keep getting several errors after 3 attempts to compile

See attached log files and system information.

- OS
-- Ubuntu 24.04
- Compiler
-- Intel LLVM
 

Attachments

  • compile.wrf1.log
    946.8 KB · Views: 3
  • compile.wrf2.log
    108.3 KB · Views: 1
  • compile.wrf3.log
    106.4 KB · Views: 1
  • configure.log
    9.7 KB · Views: 1
Was successfully able to install on Ubuntu 24 with GNU compilers.
See attached log files:


The original issue may be related to the intel compilers
 

Attachments

  • compile.wrf1.log
    965.4 KB · Views: 2
  • configure.log
    9.5 KB · Views: 1
Can you post the output of mpiifx -show?

It looks like for some reason the wrapper / compile line is not providing a valid path to the MPI module.
 
Bash:
workhorse@workhorse-MS-7D91:~$  source /opt/intel/oneapi/setvars.sh
 
:: initializing oneAPI environment ...
   bash: BASH_VERSION = 5.2.21(1)-release
   args: Using "$@" for setvars.sh arguments:
:: advisor -- latest
:: ccl -- latest
:: compiler -- latest
:: dal -- latest
:: debugger -- latest
:: dev-utilities -- latest
:: dnnl -- latest
:: dpcpp-ct -- latest
:: dpl -- latest
:: intelpython -- latest
:: ipp -- latest
:: ippcp -- latest
:: mkl -- latest
:: mpi -- latest
:: tbb -- latest
:: vtune -- latest
:: oneAPI environment initialized ::
 
workhorse@workhorse-MS-7D91:~$ mpiifx -show
ifx -I"/opt/intel/oneapi/mpi/2021.13/include/mpi" -I"/opt/intel/oneapi/mpi/2021.13/include" -I"/opt/intel/oneapi/mpi/2021.13/include/mpi" -L"/opt/intel/oneapi/mpi/2021.13/lib" -L"/opt/intel/oneapi/mpi/2021.13/lib" -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker "/opt/intel/oneapi/mpi/2021.13/lib" -Xlinker -rpath -Xlinker "/opt/intel/oneapi/mpi/2021.13/lib" -lmpifort -lmpi -ldl -lrt -lpthread

workhorse@workhorse-MS-7D91:~$ mpiicx -show
icx -I"/opt/intel/oneapi/mpi/2021.13/include" -L"/opt/intel/oneapi/mpi/2021.13/lib" -L"/opt/intel/oneapi/mpi/2021.13/lib" -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker "/opt/intel/oneapi/mpi/2021.13/lib" -Xlinker -rpath -Xlinker "/opt/intel/oneapi/mpi/2021.13/lib" -lmpifort -lmpi -ldl -lrt -lpthread

workhorse@workhorse-MS-7D91:~$ mpiicpx -show
icpx -I"/opt/intel/oneapi/mpi/2021.13/include" -L"/opt/intel/oneapi/mpi/2021.13/lib" -L"/opt/intel/oneapi/mpi/2021.13/lib" -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker "/opt/intel/oneapi/mpi/2021.13/lib" -Xlinker -rpath -Xlinker "/opt/intel/oneapi/mpi/2021.13/lib" -lmpicxx -lmpifort -lmpi -ldl -lrt -lpthread

workhorse@workhorse-MS-7D91:~$ mpiifx --version
ifx (IFX) 2024.2.0 20240602
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.

workhorse@workhorse-MS-7D91:~$ mpiicx --version
Intel(R) oneAPI DPC++/C++ Compiler 2024.2.0 (2024.2.0.20240602)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2024.2/bin/compiler
Configuration file: /opt/intel/oneapi/compiler/2024.2/bin/compiler/../icx.cfg

workhorse@workhorse-MS-7D91:~$ mpiicpx --version
Intel(R) oneAPI DPC++/C++ Compiler 2024.2.0 (2024.2.0.20240602)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2024.2/bin/compiler
Configuration file: /opt/intel/oneapi/compiler/2024.2/bin/compiler/../icpx.cfg

workhorse@workhorse-MS-7D91:~$

That all you needed @islas
 
WRF v4.6.0 does not contain an mpiifx stanza. I'm not sure if this issue is due to edits or an environment issue so if possible recreating the problem with no edits to the source code / configurations helps narrow it down.
 
WRF v4.6.0 does not contain an mpiifx stanza. I'm not sure if this issue is due to edits or an environment issue so if possible recreating the problem with no edits to the source code / configurations helps narrow it down.
Okay right I understand what you are asking now. And yes it does the same thing without using the mpiifx stanza
 
Do you happen to have older versions of the intel oneAPI compilers (e.g. 2024.0.2)? If so, can you reproduce the error using that environment?
 
@islas

Sometimes I swear the WRF and my desktop likes to mess with me just to make me look bad.

I conducted two tests; one with and without the intel mpi wrappers.

Now they both seem to be running without a problem. But you could see in the initial log files it didn't. So i'm not sure what changed.
 

Attachments

  • No_Intel_wrappers.zip
    57.9 KB · Views: 4
  • With_Intel_Wrappers.zip
    57.3 KB · Views: 3
Hi Will, firstly thankyou so much for all your hard work on WRF-MOSIT, I’ve been trying a subset of your code for only compiling on one of my x86_64 Linux servers, with Ubuntu. Not sure if its related to this thread but I can’t get a working Intel LLVM build of WRF-Chem, the executables are built (usually thats a good sign :) ) but the Intel MPI doesn’t run WRF, it runs real.exe but only on two cores. The MPI processes are killed instantly with WRF. Literally tried everything so back to gcc for me methinks :)
 
Hi Will, firstly thankyou so much for all your hard work on WRF-MOSIT, I’ve been trying a subset of your code for only compiling on one of my x86_64 Linux servers, with Ubuntu. Not sure if its related to this thread but I can’t get a working Intel LLVM build of WRF-Chem, the executables are built (usually thats a good sign :) ) but the Intel MPI doesn’t run WRF, it runs real.exe but only on two cores. The MPI processes are killed instantly with WRF. Literally tried everything so back to gcc for me methinks :)
@scottlynn73

My linkedin is on my signature on this post. Message me through there as technically the code is not apart of NCAR and this forum is meant for that.

I should be able to help you there.
 
Top