Skip to content

Commit

Permalink
Reduce the number of cores used for examples with parallelization (ma…
Browse files Browse the repository at this point in the history
…x 2 to pass the check as cran)
  • Loading branch information
aursiber committed Mar 10, 2022
1 parent a9d8cbc commit e981a80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions man/bootdist.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ proc.time() - ptm
# parallel version using snow
require(parallel)
ptm <- proc.time()
summary(bootdist(f1, niter = niter, parallel = "snow", ncpus = 4))
summary(bootdist(f1, niter = niter, parallel = "snow", ncpus = 2))
proc.time() - ptm

# parallel version using multicore (not available on Windows)
ptm <- proc.time()
summary(bootdist(f1, niter = niter, parallel = "multicore", ncpus = 4))
summary(bootdist(f1, niter = niter, parallel = "multicore", ncpus = 2))
proc.time() - ptm
}

Expand Down
4 changes: 2 additions & 2 deletions man/bootdistcens.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ proc.time() - ptm
# parallel version using snow
require(parallel)
ptm <- proc.time()
summary(bootdistcens(f1, niter = niter, parallel = "snow", ncpus = 4))
summary(bootdistcens(f1, niter = niter, parallel = "snow", ncpus = 2))
proc.time() - ptm

# parallel version using multicore (not available on Windows)
ptm <- proc.time()
summary(bootdistcens(f1, niter = niter, parallel = "multicore", ncpus = 4))
summary(bootdistcens(f1, niter = niter, parallel = "multicore", ncpus = 2))
proc.time() - ptm
}

Expand Down

0 comments on commit e981a80

Please sign in to comment.