Skip to content

Commit

Permalink
Merge pull request #1042 from stan-dev/num_threads_cleanup
Browse files Browse the repository at this point in the history
Minor cleanup of the num_threads arg
  • Loading branch information
SteveBronder authored Sep 26, 2021
2 parents 5b368ac + e22aa06 commit 7e893f1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cmdstan/arguments/arg_num_threads.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ class arg_num_threads : public int_argument {
public:
arg_num_threads() : int_argument() {
_name = "num_threads";
_description = std::string("Number of threads available to the program.");
_description = std::string(
"Number of threads available to the program. For full effect, the "
"model must be compiled with STAN_THREADS=true.");
#ifdef STAN_THREADS
_validity = "num_threads > 0 || num_threads == -1";
#else
_validity = "num_threads == 1";
#endif
_default = "1";
_default_value = 1;
_good_value = 1.0;
Expand Down

0 comments on commit 7e893f1

Please sign in to comment.