Skip to content

Commit

Permalink
Enable OpenMP and GLib GThread in build (#263)
Browse files Browse the repository at this point in the history
Co-authored-by: conda-forge-webservices[bot] <91080706+conda-forge-webservices[bot]@users.noreply.github.com>
  • Loading branch information
weiji14 and conda-forge-webservices[bot] authored Aug 8, 2023
1 parent 2a7a181 commit d0b8528
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 26 deletions.
5 changes: 0 additions & 5 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions .ci_support/migrations/libnetcdf491.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions .ci_support/migrations/libnetcdf492.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ cmake -G "NMake Makefiles" ^
-D PCRE_ROOT=%LIBRARY_PREFIX% ^
-D ZLIB_ROOT=%LIBRARY_PREFIX% ^
-D CURL_ROOT=%LIBRARY_PREFIX% ^
-D GMT_ENABLE_OPENMP=TRUE ^
-D GMT_USE_THREADS=TRUE ^
-D GMT_LIBDIR=lib ^
-D DCW_ROOT=%DCW_DIR% ^
-D GSHHG_ROOT=%GSHHG_DIR% ^
Expand Down
2 changes: 2 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ cmake ${CMAKE_ARGS} -D CMAKE_INSTALL_PREFIX=$PREFIX \
-D ZLIB_ROOT=$PREFIX \
-D CURL_ROOT=$PREFIX \
-D LAPACK_LIBRARIES=$PREFIX/lib/liblapack${SHLIB_EXT} \
-D GMT_ENABLE_OPENMP=TRUE \
-D GMT_USE_THREADS=TRUE \
-D GMT_LIBDIR=lib \
-D DCW_ROOT=$DCW_DIR \
-D GSHHG_ROOT=$GSHHG_DIR \
Expand Down
8 changes: 7 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source:
sha256: d267c0c7d6fb30c9ea7e029ef27dadb26ffd7b92cb4b4703f9a3ba0e8f393a1b

build:
number: 13
number: 14
skip: true # [win and vc<14]

requirements:
Expand All @@ -24,6 +24,7 @@ requirements:
- fftw
- gdal
- geos
- glib
- ghostscript
- libnetcdf
- hdf5
Expand All @@ -50,12 +51,17 @@ requirements:

test:
commands:
# Test plotting basemap with coastlines
- gmt defaults -Vd
- gmt psbasemap -R10/70/-3/8 -JX4i/3i -Ba -B+glightred+t"TEST" -P -Vd > test0.ps
- gmt pscoast -R0/10/0/10 -JM6i -Ba -Ggray -ENG+p1p,blue -P -Vd > test1.ps
- gmt begin -Vd
- gmt coast -R0/10/0/10 -JM6i -Ba -Ggray -ENG+p1p,blue -Vd
- gmt end
# Test OpenMP multi-core with -x2
- gmt-config --all # [not win]
- gmt # [win]
- gmt grdmath -Rg -I1 0 90 SDIST = dist_to_NP.nc -x2

about:
home: https://www.generic-mapping-tools.org
Expand Down

0 comments on commit d0b8528

Please sign in to comment.