Dear all,

I found a strange thing with the snow package.

This will work:
y = matrix(1:4, 2)
cl = makeCluster(rep('localhost', 8), type='SOCK')
parMM(cl, y, y)

This will not:

y = matrix(1:4, 2)
ncore = system('nproc')
parMM(cl, y, y)
Error in cut.default(i, breaks) : invalid number of intervals

I also tried:
cl = makeCluster(rep('localhost', ncore), type='SOCK')
cl = makeCluster(rep('localhost', as.integer(ncore)), type='SOCK')

no luck.


Could anyone please help? Thanks!






Best regards,

Kaiyin ZHONG
------------------------------
FMB, Erasmus MC
k.zhong@erasmusmc.nl
kindlychung@gmail.com

	[[alternative HTML version deleted]]

