You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The -x common option is only available if GMT is compiled with OpenMP/GThreads support. If not, using -x gives the error: Unrecognized option -x. Users may be surprised why a script works on machine A but gives such an error on machine B. After reading the documentation or the man page, they may realize that GMT on machine B is not compiled with parallel support. Then users have to modify their working script unless they're unable to install another parallel-enabled GMT.
So, instead of giving the "Unrecognized option -x" error, we can make it always available.
If GMT is compiled with parallel support, then everything works as before
If GMT is NOT compiled with parallel support, then raise a WARNING and fallback to one core
In this way,
the warning message can clearly explain that the GMT is not parallel-enabled
users don't have to modify their working script if they don't care about parallel
the synopsis message can also be simplified (i.e., GMT_x_OPT, GMT_ADD_x_OPT)
The text was updated successfully, but these errors were encountered:
This is of course a recent change dealing with docs for -x and difference between OpenMP, Gthreads, and movie/batch. I would not care if we always parsed -x and if not compiled to support it we. Interested in fixing this by adding your warning instead?
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?
The
-x
common option is only available if GMT is compiled with OpenMP/GThreads support. If not, using-x
gives the error:Unrecognized option -x
. Users may be surprised why a script works on machine A but gives such an error on machine B. After reading the documentation or the man page, they may realize that GMT on machine B is not compiled with parallel support. Then users have to modify their working script unless they're unable to install another parallel-enabled GMT.So, instead of giving the "Unrecognized option -x" error, we can make it always available.
In this way,
GMT_x_OPT
,GMT_ADD_x_OPT
)The text was updated successfully, but these errors were encountered: