thanks in advance for your patience - I'm not a programmer, but a researcher. I have a model worked up in a short python script that is computationally intensive. A time horizon input of 3 takes about 2 minutes on my 2020 MacBook Pro, but I need it to run 6 steps' worth, and it takes time exponential in input size. My 2020 MacBook Pro has not returned an answer with the input of 6 in almost 24 hours now.
So I finally worked out how to use free trial time on the Google Cloud Platform, winging it all the way. I set up a virtual instance, using an "enhanced computing" VM with 8 cores. I managed to get my script up there, install the python modules needed, and so on (this all took me quite some time). I finally got it working - but for an input of 3, which requires 2m8s on my laptop, the same script / environment on the VM took 4m36s!
So I thought I was basically renting a supercomputer ... but apparently I'm totally not? Any advice appreciated! Can I use a faster machine on Google Cloud? Or is there a better service I can try? I don't want to use my own money for this project if I can help it, but I might.
One other thing: monitoring the Google VM, it's only using 12.5% of the CPU. Presumably this is because there are 8 cores and it's only using one (so I should have set up fewer cores). But running the script on my home desktop (Ubuntu 18.04), htop
tells me there are 12 python threads and all CPUs on full throttle, so I assumed the Google VM (Debian 10) could do the same?