Skip to content

Commit

Permalink
Set a default value for intra_threads in cli/translate (#397)
Browse files Browse the repository at this point in the history
Same value as in the Python API.
  • Loading branch information
guillaumekln authored Jan 27, 2021
1 parent 15776a6 commit 389ee25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/translate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ int main(int argc, char* argv[]) {
("inter_threads", "Maximum number of CPU translations to run in parallel.",
cxxopts::value<size_t>()->default_value("1"))
("intra_threads", "Number of OpenMP threads (set to 0 to use the default value).",
cxxopts::value<size_t>()->default_value("0"))
cxxopts::value<size_t>()->default_value("4"))
("device", "Device to use (can be cpu, cuda, auto).",
cxxopts::value<std::string>()->default_value("cpu"))
("device_index", "Comma-separated list of device IDs to use.",
Expand Down

0 comments on commit 389ee25

Please sign in to comment.