File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 67
67
- -DENABLE_CUDA=ON
68
68
- -DENABLE_GPU_AWARE_MPI=ON
69
69
- -DENABLE_SINGLE_PRECISION=ON
70
+ - -DBUILD_SHARED_LIBS=OFF
70
71
dependencies:
71
72
ecmwf/eccodes:
72
73
version: develop
Original file line number Diff line number Diff line change @@ -230,9 +230,9 @@ OpenACC programming model on Nvidia GPUs is supported.
230
230
Building
231
231
--------
232
232
The recommended option for building the GPU enabled ecWAM is to use the provided bundle, and pass the
233
- ` --with-loki --with-acc ` options. Different Loki transformations can also be chosen at build-time via the following
234
- bundle option: ` --loki-mode=<trafo> ` . Direct GPU-to-GPU MPI communications can be enabled by passing the
235
- ` --with-gpu-aware-mpi ` option. CPU to GPU data transfers can be accelerated (via pinning of host-side allocations)
233
+ ` --with-loki --with-acc --with-static-linking ` options. Different Loki transformations can also be chosen at
234
+ build-time via the following bundle option: ` --loki-mode=<trafo> ` . Direct GPU-to-GPU MPI communications can be enabled by
235
+ passing the ` --with-gpu-aware-mpi ` option. CPU to GPU data transfers can be accelerated (via pinning of host-side allocations)
236
236
by building with the ` --with-cuda ` option.
237
237
238
238
The ecwam-bundle also provides appropriate arch files for the nvhpc suite on the ECMWF ATOS system.
Original file line number Diff line number Diff line change @@ -97,3 +97,7 @@ options :
97
97
- with-fckit :
98
98
help : Build fckit with Python virtual environment containing fypp and yaml parser
99
99
cmake : BUILD_fckit=ON
100
+
101
+ - with-static-linking :
102
+ help : Build static libraries by default
103
+ cmake : ECWAM_BUILD_SHARED_LIBS=OFF
Original file line number Diff line number Diff line change @@ -423,16 +423,8 @@ if( HAVE_SINGLE_PRECISION )
423
423
list (APPEND ECWAM_DEFINITIONS WAM_HAVE_SINGLE_PRECISION )
424
424
endif ()
425
425
426
- # Using dynamic linking creates undefined references to the device
427
- # copies of module global variables
428
- set ( LIBRARY_TYPE SHARED )
429
- if ( HAVE_ACC )
430
- set ( LIBRARY_TYPE STATIC )
431
- endif ()
432
-
433
426
ecbuild_add_library (
434
427
TARGET ${ecwam}
435
- TYPE ${LIBRARY_TYPE}
436
428
SOURCES ${ecwam_srcs}
437
429
PUBLIC_LIBS fiat parkind_${prec} ${ecwam} _intfb
438
430
${MPI_Fortran_LIBRARIES}
You can’t perform that action at this time.
0 commit comments