Skip to content
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

Reduce lack of -x to just an information messag #8319

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

PaulWessel
Copy link
Member

See #8300. Just say if no parallel support then only once care will be used. However @seisman, my effort at printing that out fails (but the error is gone). Can you check why

#if !defined(GMT_MP_ENABLED)

seems to fail for me? E.g., lines 9169 and 18779 in gmt_init.c

See #8300.  Just say if no parallel support then only once care will be used.
However @seisman, my effort at printing that out fails (but the error is gone).  Can you check why

#if !defined(GMT_MP_ENABLED)

seems to fail for me?
@PaulWessel PaulWessel added the maintenance Boring but important stuff for the core devs label Jan 20, 2024
@PaulWessel PaulWessel added this to the 6.6.0 milestone Jan 20, 2024
@PaulWessel PaulWessel self-assigned this Jan 20, 2024
src/gmt_init.c Outdated Show resolved Hide resolved
Co-authored-by: Dongdong Tian <[email protected]>
src/gmt_init.c Outdated Show resolved Hide resolved
@seisman
Copy link
Member

seisman commented Jan 26, 2024

I'm getting this error when OpenMP is disabled:

/usr/bin/ld: src/libgmt.so.6.6.0: undefined reference to `gmtinit_parse_x_option'

The reason is gmtinit_parse_x_option is only defined if OpenMP is enabled.

joa-quim added a commit that referenced this pull request Jun 18, 2024
joa-quim added a commit that referenced this pull request Jun 19, 2024
* Let x option synopsis be printed in grdfilter independently of having OMP or not.

* Let all 3 modules built with Glib use max number of cores by default like the OMP case.

* Do not use multi-threads with -Ff (custom filter). It's broken.

* Use API->n_cores instead of gmtlib_get_num_processors() to see if it pleases Mac

* Do not use all cores by default in potential modules. Some tests are failing.

Integrate the ideas of #8319

* Remove mention to -x option (not in current surface module).

Variable filter width (grdfilter) does not support -x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants