I'm using, not training, a model with pyTorch on the CPU only but it is only, for the…
Jump to turn (9)
- 1I'm using, not training, a model with pyTorch on the CPU only but it is only, fo
- 2If the model is capable of being efficiently used on a GPU, wouldn't that sugges
- 3It seems the limitation is due to some configuration of pyTorch.
- 4USEOPENMP is set to ON not True, does that make a difference?
- 5OMPNUMTHREADS does not seem to have any effect. I have the suspicion that pyTorc
- 6Still no change, even with export MKLDEBUGCPUTYPE=5. How does torch.multiprocess
- 7Ok, I want to avoid modifying the code if possible. The model runs fine and fast
- 8torch.setnumthreads seems to reduce the number of cores used if increased?
- 9Ok, i've ran the setup with different settings for torch.setnumthreads(n) with t
- User
I'm using, not training, a model with pyTorch on the CPU only but it is only, for the most part, able to use 4 cores in parallel. Why is that and how can this be improved?
- Assistant
This behavior could be due to a few different reasons:
-
Implementation: The implementation of the model itself could be limiting the parallelization. If the operations in the model are not parallelizable, then additional cores won't be very helpful.
-