Flickr4Java icon indicating copy to clipboard operation
Flickr4Java copied to clipboard

Error in makeForkCluster(nnodes = spec, ...) : fork clusters are not supported on Windows

Open azam65 opened this issue 3 years ago • 0 comments

Subject of the issue

Describe your issue here. cl <- parallel::makeCluster( parallel::detectCores() - 1, type = "FORK" ) #"PSOCK" #FORK -> avoid duplicated values or send data several time to GPU Error in makeForkCluster(nnodes = spec, ...) : fork clusters are not supported on Windows

doParallel::registerDoParallel(cl = cl)

I have used the solution below but it did not work library (foreach) library (iterators) library (parallel) library(doParallel) cl <- makeCluster(detectCores(), type='PSOCK') registerDoParallel(cl)

turn parallel processing off and run sequentially again:

registerDoSEQ()

Your environment

sessionInfo() R version 4.0.5 (2021-03-31) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19043)

Matrix products: default

Random number generation: RNG: Mersenne-Twister Normal: Inversion Sample: Rounding

locale: [1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C LC_TIME=English_United Kingdom.1252

attached base packages: [1] parallel stats graphics grDevices utils datasets methods base

other attached packages: [1] doParallel_1.0.16 iterators_1.0.13 foreach_1.5.1 lubridate_1.7.10 zoo_1.8-9 ggpubr_0.4.0 forcats_0.5.1 stringr_1.4.0 dplyr_1.0.5 purrr_0.3.4 readr_1.4.0 tidyr_1.1.3
[13] tibble_3.1.1 ggplot2_3.3.5 tidyverse_1.3.1

loaded via a namespace (and not attached): [1] httr_1.4.2 jsonlite_1.7.2 splines_4.0.5 carData_3.0-4 modelr_0.1.8 assertthat_0.2.1 cellranger_1.1.0 yaml_2.2.1 pillar_1.6.0 backports_1.2.1 lattice_0.20-41 glue_1.4.2
[13] digest_0.6.27 ggsignif_0.6.1 rvest_1.0.0 colorspace_2.0-0 cowplot_1.1.1 Matrix_1.3-2 pkgconfig_2.0.3 broom_0.7.6 haven_2.4.1 scales_1.1.1 openxlsx_4.2.3 rio_0.5.26
[25] mgcv_1.8-34 generics_0.1.0 farver_2.1.0 car_3.0-10 ellipsis_0.3.2 withr_2.4.2 cli_2.5.0 magrittr_2.0.1 crayon_1.4.1 readxl_1.3.1 fs_1.5.0 fansi_0.4.2
[37] nlme_3.1-152 rstatix_0.7.0 xml2_1.3.2 foreign_0.8-81 tools_4.0.5 data.table_1.14.0 hms_1.0.0 lifecycle_1.0.0 munsell_0.5.0 reprex_2.0.0 zip_2.1.1 compiler_4.0.5
[49] tinytex_0.31 rlang_0.4.10 grid_4.0.5 rstudioapi_0.13 labeling_0.4.2 gtable_0.3.0 codetools_0.2-18 abind_1.4-5 DBI_1.1.1 curl_4.3 R6_2.5.0 gridExtra_2.3
[61] utf8_1.2.1 stringi_1.5.3 Rcpp_1.0.6 vctrs_0.3.8 dbplyr_2.1.1 tidyselect_1.1.1 xfun_0.22

Steps to reproduce

Tell us how to reproduce this issue. Please provide working code.

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Log

Please copy paste the log here if available

azam65 avatar Jan 14 '22 03:01 azam65