Dear Carl,<br><br>In GCC OpenMP runtime is abstracted from the language in the library called libgomp:<br><br>$ readelf -a /usr/lib/gcc/x86_64-linux-gnu/4.6/libgomp.so | grep GOMP_parallel_start<br> 139: 0000000000006fb0 79 FUNC GLOBAL DEFAULT 12 GOMP_parallel_start@@GOMP_1.0<br>
<br>Try to link with it on the final link step, e.g. add -lgomp.<br><br>However, Cray compiler should provide its own OpenMP runtime, and I'm wondering if Cray's and gcc's could happily coexist in the same application.<br>
<br>Best,<br>- D.<br><br><div class="gmail_quote">2012/9/12 Carl Ponder <span dir="ltr"><<a href="mailto:cponder@nvidia.com" target="_blank">cponder@nvidia.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
I downloaded<tt> </tt><tt>WRFV3.4.1.TAR.gz </tt>and am working on
a Cray system.<br>
The configurator gave me these options (among others)<br>
<blockquote><tt> 31. Cray XT CLE/Linux x86_64, Cray CCE compiler
with gcc (serial)</tt><br>
<tt> 32. Cray XT CLE/Linux x86_64, Cray CCE compiler with gcc
(smpar)</tt><br>
<tt> 33. Cray XT CLE/Linux x86_64, Cray CCE compiler with gcc
(dmpar)</tt><br>
<tt> 34. Cray XT CLE/Linux x86_64, Cray CCE compiler with gcc
(dm+sm)</tt><br>
</blockquote>
and I picked number 34. When I compile I get the errors<br>
<blockquote><tt>ftn -o wrf.exe -Oomp -N255 -Onomodinline -em
-Onoomp -f free -h byteswapio -Oomp wrf.o
../main/module_wrf_top.o libwrflib.a /mnt/lustr</tt><br>
<tt>e_server/cponder/CUDA/WRF/UCAR/WRFV3/external/fftpack/fftpack5/libfftpack.a
/mnt/lustre_server/cponder/CUDA/WRF/UCAR/WRFV3/external/io_grib</tt><br>
<tt>1/libio_grib1.a
/mnt/lustre_server/cponder/CUDA/WRF/UCAR/WRFV3/external/io_grib_share/libio_grib_share.a
/mnt/lustre_server/cponder/CUDA/WR</tt><br>
<tt>F/UCAR/WRFV3/external/io_int/libwrfio_int.a
-L/mnt/lustre_server/cponder/CUDA/WRF/UCAR/WRFV3/external/esmf_time_f90
-lesmf_time /mnt/lustre</tt><br>
<tt>_server/cponder/CUDA/WRF/UCAR/WRFV3/external/RSL_LITE/librsl_lite.a
/mnt/lustre_server/cponder/CUDA/WRF/UCAR/WRFV3/frame/module_internal_he</tt><br>
<tt>ader_util.o
/mnt/lustre_server/cponder/CUDA/WRF/UCAR/WRFV3/frame/pack_utils.o
-L/mnt/lustre_server/cponder/CUDA/WRF/UCAR/WRFV3/external/io</tt><br>
<tt>_netcdf -lwrfio_nf -L/opt/cray/netcdf/4.2.0/cray/74/lib
-lnetcdff -lnetcdf </tt><br>
<tt>libwrflib.a(setfeenv.o): In function `setfeenv_':</tt><br>
<tt><b>setfeenv.c:(.text+0x46): undefined reference to
`GOMP_parallel_start'</b></tt><br>
<tt><b> </b></tt><tt><b>setfeenv.c:(.text+0x53): undefined
reference to `GOMP_parallel_end'</b></tt><br>
<tt>make[1]: [em_wrf] Error 1 (ignored)</tt><br>
<tt>make[1]: Leaving directory
`/mnt/lustre_server/cponder/CUDA/WRF/UCAR/WRFV3/main'</tt><br>
</blockquote>
I can make these go away by removing the definitions<br>
<blockquote><tt>101 OMPCPP = -D_OPENMP</tt><br>
<tt>102 OMP = -mp -Mrecursive</tt><br>
<tt>103 OMPCC = -mp</tt><br>
</blockquote>
from<tt> configure.wrf</tt>, essentially making it run
single-threaded.<br>
Are there some environment settings I need to use, to get this to
run with OpenMP on the Cray?<br>
I tried loading the GCC module, in case the<tt> GOMP_</tt><tt>parallel
</tt>components were supposed to come from the<tt> gfortran </tt>library,
but it didn't help.<br>
If I have to edit the<tt> configure.wrf </tt>file, I'd say it
wasn't generated correctly to begin with, and the WRF toolkit ought
to be fixed.<br>
Can any of you send me a<tt> configure.wrf </tt>and list of build
instructions that will work?<br>
Thanks,<br>
<br>
Carl Ponder<br>
<br>
<div>
<hr>
</div>
<div>This email message is for the sole use of the intended recipient(s) and may
contain confidential information. Any unauthorized review, use, disclosure
or distribution is prohibited. If you are not the intended recipient,
please contact the sender by reply email and destroy all copies of the original
message. </div>
<div>
<hr>
</div>
<p></p>
</div>
<br>_______________________________________________<br>
Wrf-users mailing list<br>
<a href="mailto:Wrf-users@ucar.edu">Wrf-users@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" target="_blank">http://mailman.ucar.edu/mailman/listinfo/wrf-users</a><br>
<br></blockquote></div><br>