SNPRelate icon indicating copy to clipboard operation
SNPRelate copied to clipboard

LDpruning really using num.threads?

Open rafalcode opened this issue 5 years ago • 2 comments

I've set this parameter on the snpgdsLDpruning() function and I even get back Working space: 316 samples, 795,668 SNPs using 24 (CPU) cores however every time I look at cpu usage (say, using htop) only one processor is being used. Moreover there is very little difference in time taken when num.thread=1 and 24. So I feel something is up.

rafalcode avatar Jun 27 '19 20:06 rafalcode

No multithreaded support.

zhengxwen avatar Jun 27 '19 22:06 zhengxwen

OK, thanks, it's in the console output ... my eyes missed it :-( But it came at the end, after the "using 24" came up ... As I quick fix, to avoid confusion/ disappointment, may I suggest the following? In LD.R, @ .InitFIle2() call cmd=paste(ifelse(inherits(gdsobj, "SeqVarGDSClass"), "SNV", "SNP"), "pruning based on LD (single core only, disregard using CPU comment below):"), gdsobj = etc.)

rafalcode avatar Jun 28 '19 11:06 rafalcode