-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPS build fails when WRF was compiled with an 'smpar' option #110
Comments
I got the similar error building WPS. Neither dmpar nor dm+sm of WRF build works. I finally built WRF with serial, then the geogrid and metgrid can be built. |
This may not be ideal, but for most purposes, serially compiled WPS should work pretty well. |
Same problem here, WRF 4.2.1 with dm+sm: #22 28.20 /usr/sbin/ld: wrf_io.f:(.text+0x35c7): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_next'
#22 28.20 /usr/sbin/ld: /var/lib/wrf/external/io_netcdf/libwrfio_nf.a(wrf_io.o): in function `__ext_ncd_support_routines_MOD_transpose._omp_fn.11':
#22 28.20 wrf_io.f:(.text+0x3a95): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_start' |
I had a similar problem after compiling WRF 4.1 with an Intel compiler using option 14 (smpar). My solution/workaround was this:
Voila: everything is compiled as expected. |
@mgduda @hermannschwaerzlerUIBK Any idea as to the root cause of this? Has this worked in the past? Is this the place that would need changing in the configure script? |
I got an error suggesting that it was -fopenmp rather than "-qopenmp". It worked for me leaving line 107 in
|
In the chance that this is helpful, I am also running into a bunch of "undefined reference to " errors when trying to build WPS serial, parallel and non grib However, looking at the comments above I tried editing
to
And it compiled serial, parallel and with grib2. I still need to test it but the exe compiles |
It works. Thanks a lot! |
Why doesn't my configure.wrf have WRF_LIB? WRF Model Version 4.5 |
When WRF was compiled with an
smpar
option, the WRF I/O API library contains references to OpenMP libraries (e.g., 'GOMP' with the GNU compilers). Because the WPS doesn't support ansmpar
option and therefore never links the OpenMP library, the build ofgeogrid.exe
andmetgrid.exe
will fail with errors like:The text was updated successfully, but these errors were encountered: