File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11Package: future
2- Version: 1.67.0-9003
2+ Version: 1.67.0-9004
33Title: Unified Parallel and Distributed Processing in R for Everyone
44Depends:
55 R (>= 3.2.0)
@@ -13,6 +13,7 @@ Imports:
1313Suggests:
1414 methods,
1515 RhpcBLASctl,
16+ Rmpi,
1617 R.rsp,
1718 markdown
1819VignetteBuilder: R.rsp
Original file line number Diff line number Diff line change 1- fullTest <- (Sys.getenv(" _R_CHECK_FULL_" ) != " " )
2-
31covr_testing <- (" covr" %in% loadedNamespaces())
42on_macos <- grepl(" ^darwin" , R.version $ os )
53on_githubactions <- as.logical(Sys.getenv(" GITHUB_ACTIONS" , " FALSE" ))
Original file line number Diff line number Diff line change @@ -9,22 +9,23 @@ makeClusterMPI <- parallelly::makeClusterMPI
99message(" *** MPI ..." )
1010
1111pkg <- " Rmpi"
12- if (fullTest && requireNamespace(pkg , quietly = TRUE )) {
12+ if (requireNamespace(pkg , quietly = TRUE )) {
1313 cl <- makeClusterMPI(availableCores())
1414 str(cl )
1515
1616 plan(cluster , workers = cl )
1717
18- fs <- lapply(1 : 2 , FUN = function (x ) future({
18+ xs <- seq_len(nbrOfWorkers() + 1 )
19+ fs <- lapply(xs , FUN = function (x ) future({
1920 printf(" Hostname: %s\n " , Sys.info()[[" nodename" ]])
2021 printf(" PID: %d\n " , Sys.getpid())
2122 Sys.sleep(0.5 )
22- x ^ 2
23+ - x
2324 }))
2425 print(fs )
2526 vs <- value(fs )
2627 print(vs )
27- stopifnot(all(unlist(vs ) == c( 1 , 4 ) ))
28+ stopifnot(all(unlist(vs ) == - xs ))
2829
2930 stopCluster(cl )
3031 str(cl )
You can’t perform that action at this time.
0 commit comments