-
Notifications
You must be signed in to change notification settings - Fork 65
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
Error with install_wps_openmpi.sh - geogrid.exe and metgrid.exe not built. #294
Comments
Something is incorrectly setting MPI_LIB which results in metgrid and geogrid not compiling.
Turns out that the fix above was not sufficient. I ended up having to override the MPI_LIB fix in the install_wps_openmpi.sh script itself. See changes in my branch: |
Is the openmpi module being loaded correctly? |
There are no errors shown.
Is it the module load command that sets the MPI_LIB env bar?
…On Wed, 17 Jun 2020, 00:28 Cormac Garvey, ***@***.***> wrote:
Is the openmpi module being loaded correctly?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#294 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIBYV6EMYLFVBHTNRDVCWTRW75YNANCNFSM4N7S3FFA>
.
|
So it is However I am not sure if it is being set to an incorrect value OR if it is the WPS configure setup that is using it incorrectly. In any case it end up not building all of the required WPS executables. Thanks |
Thanks for finding this build error. I took a closer look at it today. Here is the problem. |
closing as this was fixed with above PR. please reopen if you still hit issues. |
mpif90 -o geogrid.exe cio.o wrf_debug.o bitarray_module.o constants_module.o module_stringutil.o geogrid.o gridinfo_module.o hash_module.o interp_module.o list_module.o llxy_module.o misc_definitions_module.o module_debug.o module_map_utils.o output_module.o parallel_module.o process_tile_module.o proc_point_module.o queue_module.o read_geogrid.o smooth_module.o source_data_module.o \ /home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/frame/module_driver_constants.o \ /home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/frame/pack_utils.o /home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/frame/module_machine.o \ /home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/frame/module_internal_header_util.o \ -I/home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/external/io_netcdf -I/home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/external/io_grib_share -I/home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/external/io_grib1 -I/home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/external/io_int -I/home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/inc -I/home/darreng/apps/spack/d/linux-centos7-broadwell/gcc-9.2.0/netcdf-fortran-4.5.2-6wg7fpk7qmq6wnoscmeui7pjsp67a2jc/include \ -L/home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/external/io_grib1 -lio_grib1 -L/home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/external/io_grib_share -lio_grib_share -L/home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/external/io_int -lwrfio_int -L/home/darreng/apps/d/wrf-openmpi/WRF-4.1.5/external/io_netcdf -lwrfio_nf -L/home/darreng/apps/spack/d/linux-centos7-broadwell/gcc-9.2.0/netcdf-fortran-4.5.2-6wg7fpk7qmq6wnoscmeui7pjsp67a2jc/lib -lnetcdff -lnetcdf \ /opt/openmpi-4.0.3/lib /opt/openmpi-4.0.3/lib: file not recognized: Is a directory collect2: error: ld returned 1 exit status
Something and I am not sure if it is spack or something else in the setup is setting the MPI_LIB env var incorrectly. It was set as
/openmpi-4.0.3/lib
which causes SOME of the WPS executables to fail to compile. ungrib.exe was being built however.To work around this issue I have done this:
export MPI_LIB="-L/openmpi-4.0.3/lib -lmpi" WRF_VERSION=4.1.5 ./install_wps_openmpi.sh
I'd appreciate someone thoughts on if my workaround is acceptable and if there is more correct solution.
Thanks
Darren
The text was updated successfully, but these errors were encountered: