I am developing in a Jupyter Notebook. I am trying to see whether I can use all 48 cores/96 threads of my CPU to accelerate tensor operations in pytorch since task manager is showing only about 2% cpu utilization when I am running tensor operations like matrix multiplication.
I am working in a Jupyter Notebook and trying to check whether PyTorch can use all 48 cores with 96 threads to speed up tensor operations like matrix multiplication. However, even when I compare performance between a single core and multiple cores, the benchmark runtime stays almost the same. The task manager also shows only about 2 percent CPU usage during the operation.
It makes me wonder whether Jupyter Notebook is limiting multiprocessing, or if there is something else I’m missing. Can I get some guidance on this?However, no matter what I do, I can’t speed up the tensor operation when I compared the runtime between 1 cpu vs. multi. I think maybe Jupyter Notebook itself isn’t capable of using multicpu. Can I ask for help about this?