mlverse / torch

R Interface to Torch
https://torch.mlverse.org
Other
490 stars 64 forks source link

Multithreading for CPU device on Mac #1093

Open dkibalnikov opened 1 year ago

dkibalnikov commented 1 year ago

I am using Mac with Intel processor. I can't figure out why RTorch package only uses 1 core for tensor operation while PyTorch does all 4 cores available on my laptop. There is some known issue about OpenMP on Mac. I tried to use my fixed makevars file and option remotes::install_github("mlverse/torch", build = TRUE ) for installations but this does not help. More over simultaneously usage of data.table and torch in that case leads to R session crash.