Closed tbrunetti closed 2 years ago
If I lower the core use, it resolves the issue, although not sure why. I have profiled memory and CPU use and I have more than enough resources. Anyway, it is not urgent in that I can at least get it to work on lower cores
Hi @tbrunetti ,
This is an issue that happens occasionally with multithreading but there is unfortunately no consistent solution. For some people reducing the number of threads works, but for some it also worked to increase it. It probably has to do with how R handles memory sharing and object copies but it is difficult to debug as R offers few options to investigate such issues.
Regards, Christophe.
No problem -- I figure it is a problem with the parallel
library in R. Just wasn't sure if you were aware of the issue and if there was an official solution. Thanks!
Hi @tbrunetti
What did you do to sort it out?. I installed version 1.15 and can't get rid of this error since then...
Thanks
@Sa753 sorry I missed this! The only way I was able to resolve it was to reduce the number of cores being used. Sorry the solution isn't better
Hi, what parameter did you change to reduce the number of cores? I only see an option of choosing num_threads, not number of cores
Hi, what parameter did you change to reduce the number of cores? I only see an option of choosing num_threads, not number of cores
Sorry, I meant num_threads
. Often time informatics software threading is done per core, but that may not be the case here where multiple threads may be running on a single core or CPU.
Hello,
I am using the newest pull from the master branch of infercnv. I encountered an error at STEP18, which throws the following error:
INFO [2022-08-24 15:27:30] Creating the following Directory: /home/tonya/pluto_projects/Experiment_Types/scRNA_with_HTO/inferCNV_output//BayesNetOutput.HMMi6.leiden.hmm_mode-subclusters INFO [2022-08-24 15:27:30] Initializing new MCM InferCNV Object. INFO [2022-08-24 15:27:30] validating infercnv_obj INFO [2022-08-24 15:27:32] Total CNV's: 40543 INFO [2022-08-24 15:27:32] Loading BUGS Model. INFO [2022-08-24 15:31:08] Running Sampling Using Parallel with 15 Cores INFO [2022-08-24 15:55:41] Obtaining probabilities post-sampling Error in do.call(rbind, mcmc[[j]]) : second argument must be a list In addition: Warning message: In parallel::mclapply(seq_along(obj@cell_gene), FUN = par_func, : scheduled cores 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 did not deliver results, all values of the jobs will be affected\
Is this usually due to a memory issue or something else? I am using about 32GB of RAM on a single cancer sample and a single reference sample.
Here is my rsession info in case there is any weird software versiongs, but I am using Rv4.2.1