Closed mschauer closed 1 year ago
Nice! Before we were slower?
Yes, a bit slower as the C implementation "stable.fast" contained in pcalg
, by a factor of 2 which is okay (and much faster than the native implementation "stable" of course which is the default in pcalg
)
What if you pass numCores = 4 in the pcalg call?
E.g.: system.time(skel.fit <- skeleton(suffStat = list(C = cor(dat), n = n), indepTest = gaussCItest, alpha = 0.001, p = p, method = "stable.fast", numCores = 4))#
Hm, you are right, but not much happens:
> system.time(skel.fit <- skeleton(suffStat = list(C = cor(dat), n = n),
+ indepTest = gaussCItest, ## (partial correlations)
+ alpha = 0.001, p = p, method = "stable.fast", numCores = 4))#, labels = V
user system elapsed
13.838 0.063 14.031
>
Hmm weird... But not our problem I guess...
That is more tricky on a second note. Not sure if I even have OpenMP support. See https://mac.r-project.org/openmp/#do
Agreed that this is above our pay grade.
Timings versus pc-alg on 4 threads:
versus