Multi CPU parallel calculation

Hi everybody,
I’m trying to run a script on multiple CPU/multiple core system. I’ve never used it. I’ve tried to do it searching in the web, but without success. Could you give me instructions?

My system:
PC Core i-7 - Quad Core model: Intel Core i7-10510U bits: 64
Linux Mint 20
Anaconda - Spyder editor
Application: script with pytorch for machine learning LSTM algorithm

I can run the same code on a remote computer with more CPU’s.

Where should I start in order to configure the script in the right way?

Best regards
Beppe

You will need to update the script to use some distributed training APIs, please see this tutorial: Getting Started with Distributed Data Parallel — PyTorch Tutorials 2.2.1+cu121 documentation

You can use the gloo backend which is a CPU backend