Displaying 14 results from an estimated 14 matches for "check_ncor".
Did you mean:
check_ncores
2023 Jul 01
1
Number of Cores limited to two in CRAN
This is the specific error messsage from R CMD check --as-cran
Error in .check_ncores(length(names)) : 16 simultaneous processes spawned
Calls: prepost -> makeCluster -> makePSOCKcluster -> .check_ncores
Execution halted
Thanks,
Ravi
________________________________
From: Ravi Varadhan
Sent: Saturday, July 1, 2023 1:15 PM
To: R-Help <r-help at r-project.org>...
2020 Jan 10
2
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
.../parallel/R/unix/mclapply.R
===================================================================
--- src/library/parallel/R/unix/mclapply.R (revision 77648)
+++ src/library/parallel/R/unix/mclapply.R (working copy)
@@ -28,7 +28,7 @@
stop("'mc.cores' must be >= 1")
.check_ncores(cores)
- if (isChild() && !isTRUE(mc.allow.recursive))
+ if (!allowFork() || (isChild() && !isTRUE(mc.allow.recursive)))
return(lapply(X = X, FUN = FUN, ...))
## Follow lapply
Index: src/library/parallel/R/unix/mcparallel.R
===================================...
2023 Jul 01
1
Number of Cores limited to two in CRAN
Hi,
I am developing a package where I would like to utilize multiple cores for parallel computing. However, I get an error message when I run R CMD check --as-cran.
I read that CRAN limits the number of cores to 2. Is this correct? Is there any way to overcome this limitation?
Thank you,
Ravi
[[alternative HTML version deleted]]
2020 Jan 10
2
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
...====================================================
>> --- src/library/parallel/R/unix/mclapply.R (revision 77648)
>> +++ src/library/parallel/R/unix/mclapply.R (working copy)
>> @@ -28,7 +28,7 @@
>> stop("'mc.cores' must be >= 1")
>> .check_ncores(cores)
>> - if (isChild() && !isTRUE(mc.allow.recursive))
>> + if (!allowFork() || (isChild() && !isTRUE(mc.allow.recursive)))
>> return(lapply(X = X, FUN = FUN, ...))
>> ## Follow lapply
>> Index: src/library/parallel/R/unix/mcparal...
2020 Jan 10
0
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
...===================================================================
> --- src/library/parallel/R/unix/mclapply.R (revision 77648)
> +++ src/library/parallel/R/unix/mclapply.R (working copy)
> @@ -28,7 +28,7 @@
> stop("'mc.cores' must be >= 1")
> .check_ncores(cores)
>
> - if (isChild() && !isTRUE(mc.allow.recursive))
> + if (!allowFork() || (isChild() && !isTRUE(mc.allow.recursive)))
> return(lapply(X = X, FUN = FUN, ...))
>
> ## Follow lapply
> Index: src/library/parallel/R/unix/mcparallel.R...
2020 Jan 10
6
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
...==============
>>>> --- src/library/parallel/R/unix/mclapply.R (revision 77648)
>>>> +++ src/library/parallel/R/unix/mclapply.R (working copy)
>>>> @@ -28,7 +28,7 @@
>>>> stop("'mc.cores' must be >= 1")
>>>> .check_ncores(cores)
>>>> - if (isChild() && !isTRUE(mc.allow.recursive))
>>>> + if (!allowFork() || (isChild() && !isTRUE(mc.allow.recursive)))
>>>> return(lapply(X = X, FUN = FUN, ...))
>>>> ## Follow lapply
>>>> Inde...
2019 Apr 15
2
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
On Mon, 15 Apr 2019 at 08:44, Tomas Kalibera <tomas.kalibera at gmail.com> wrote:
>
> On 4/13/19 12:05 PM, I?aki Ucar wrote:
> > On Sat, 13 Apr 2019 at 03:51, Kevin Ushey <kevinushey at gmail.com> wrote:
> >> I think it's worth saying that mclapply() works as documented
> > Mostly, yes. But it says nothing about fork's copy-on-write and memory
>
2020 Jan 11
1
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
...; --- src/library/parallel/R/unix/mclapply.R (revision 77648)
>>>>>> +++ src/library/parallel/R/unix/mclapply.R (working copy)
>>>>>> @@ -28,7 +28,7 @@
>>>>>> stop("'mc.cores' must be >= 1")
>>>>>> .check_ncores(cores)
>>>>>> - if (isChild() && !isTRUE(mc.allow.recursive))
>>>>>> + if (!allowFork() || (isChild() && !isTRUE(mc.allow.recursive)))
>>>>>> return(lapply(X = X, FUN = FUN, ...))
>>>>>> ## Follo...
2020 Jan 10
0
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
...===========================
> >> --- src/library/parallel/R/unix/mclapply.R (revision 77648)
> >> +++ src/library/parallel/R/unix/mclapply.R (working copy)
> >> @@ -28,7 +28,7 @@
> >> stop("'mc.cores' must be >= 1")
> >> .check_ncores(cores)
> >> - if (isChild() && !isTRUE(mc.allow.recursive))
> >> + if (!allowFork() || (isChild() && !isTRUE(mc.allow.recursive)))
> >> return(lapply(X = X, FUN = FUN, ...))
> >> ## Follow lapply
> >> Index: src/librar...
2020 Jan 10
0
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
...gt;>> --- src/library/parallel/R/unix/mclapply.R (revision 77648)
> >>>> +++ src/library/parallel/R/unix/mclapply.R (working copy)
> >>>> @@ -28,7 +28,7 @@
> >>>> stop("'mc.cores' must be >= 1")
> >>>> .check_ncores(cores)
> >>>> - if (isChild() && !isTRUE(mc.allow.recursive))
> >>>> + if (!allowFork() || (isChild() && !isTRUE(mc.allow.recursive)))
> >>>> return(lapply(X = X, FUN = FUN, ...))
> >>>> ## Follow lapply
&...
2020 Jan 11
2
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
...; --- src/library/parallel/R/unix/mclapply.R (revision 77648)
>>>>>> +++ src/library/parallel/R/unix/mclapply.R (working copy)
>>>>>> @@ -28,7 +28,7 @@
>>>>>> stop("'mc.cores' must be >= 1")
>>>>>> .check_ncores(cores)
>>>>>> - if (isChild() && !isTRUE(mc.allow.recursive))
>>>>>> + if (!allowFork() || (isChild() && !isTRUE(mc.allow.recursive)))
>>>>>> return(lapply(X = X, FUN = FUN, ...))
>>>>>> ## Follo...
2020 Jan 10
0
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
...gt;>> --- src/library/parallel/R/unix/mclapply.R (revision 77648)
> >>>> +++ src/library/parallel/R/unix/mclapply.R (working copy)
> >>>> @@ -28,7 +28,7 @@
> >>>> stop("'mc.cores' must be >= 1")
> >>>> .check_ncores(cores)
> >>>> - if (isChild() && !isTRUE(mc.allow.recursive))
> >>>> + if (!allowFork() || (isChild() && !isTRUE(mc.allow.recursive)))
> >>>> return(lapply(X = X, FUN = FUN, ...))
> >>>> ## Follow lapply
&...
2020 Jan 11
1
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
...; --- src/library/parallel/R/unix/mclapply.R (revision 77648)
>>>>>> +++ src/library/parallel/R/unix/mclapply.R (working copy)
>>>>>> @@ -28,7 +28,7 @@
>>>>>> stop("'mc.cores' must be >= 1")
>>>>>> .check_ncores(cores)
>>>>>> - if (isChild() && !isTRUE(mc.allow.recursive))
>>>>>> + if (!allowFork() || (isChild() && !isTRUE(mc.allow.recursive)))
>>>>>> return(lapply(X = X, FUN = FUN, ...))
>>>>>> ## Follo...
2020 Jan 11
0
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
...rallel/R/unix/mclapply.R (revision 77648)
> >>>>>> +++ src/library/parallel/R/unix/mclapply.R (working copy)
> >>>>>> @@ -28,7 +28,7 @@
> >>>>>> stop("'mc.cores' must be >= 1")
> >>>>>> .check_ncores(cores)
> >>>>>> - if (isChild() && !isTRUE(mc.allow.recursive))
> >>>>>> + if (!allowFork() || (isChild() && !isTRUE(mc.allow.recursive)))
> >>>>>> return(lapply(X = X, FUN = FUN, ...))
> >>>>...