Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 394a729

Browse filesBrowse files
committed
use int for numThreads
1 parent 20353e3 commit 394a729
Copy full SHA for 394a729

File tree

2 files changed

+4
-4
lines changed
Filter options

2 files changed

+4
-4
lines changed

‎inst/include/RcppParallel.h

Copy file name to clipboardExpand all lines: inst/include/RcppParallel.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ inline void parallelFor(std::size_t begin,
3232
std::size_t end,
3333
Worker& worker,
3434
std::size_t grainSize = 1,
35-
std::size_t numThreads = -1)
35+
int numThreads = -1)
3636
{
3737
#if RCPP_PARALLEL_USE_TBB
3838
if (internal::backend() == internal::BACKEND_TBB)
@@ -49,7 +49,7 @@ inline void parallelReduce(std::size_t begin,
4949
std::size_t end,
5050
Reducer& reducer,
5151
std::size_t grainSize = 1,
52-
std::size_t numThreads = -1)
52+
int numThreads = -1)
5353
{
5454
#if RCPP_PARALLEL_USE_TBB
5555
if (internal::backend() == internal::BACKEND_TBB)

‎inst/include/RcppParallel/TBB.h

Copy file name to clipboardExpand all lines: inst/include/RcppParallel/TBB.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ inline void tbbParallelFor(std::size_t begin,
186186
std::size_t end,
187187
Worker& worker,
188188
std::size_t grainSize = 1,
189-
std::size_t numThreads = -1)
189+
int numThreads = -1)
190190
{
191191
tbb::task_arena arena(numThreads == -1 ? tbb::task_arena::automatic : numThreads);
192192
tbb::task_group group;
@@ -200,7 +200,7 @@ inline void tbbParallelReduce(std::size_t begin,
200200
std::size_t end,
201201
Reducer& reducer,
202202
std::size_t grainSize = 1,
203-
std::size_t numThreads = -1)
203+
int numThreads = -1)
204204
{
205205
tbb::task_arena arena(numThreads == -1 ? tbb::task_arena::automatic : numThreads);
206206
tbb::task_group group;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.