tdulcet / Distributed-Computing-Scripts

🖧 Distributed Computing Scripts for GIMPS, BOINC and Folding@home
MIT License
19 stars 12 forks source link

Google Colab Scripts (CPU, GPU) and Mprime Python Port #8

Closed Danc2050 closed 4 years ago

Danc2050 commented 4 years ago

The Google Colab scripts seem to work fine from my initial testing, but need more testing. Also, some of the sudo commands may not be needed.

The mprime script has some issues:

  1. pexpect cannot enter default input like your expect script can...so each cmd must have a line of response. It works fine on my computer. But a computer like Watson doesn't request input for the lines regarding Hyperthreading, so the script had to be modified. There may be other systems that are like this. ~2. The cronjob still cannot work. I spent over an hour on this and I can't find a way to do it. I get an error when trying to just run the entire command using the subprocess library. I also tried os.system, but that had another error. I also tried running things separately, using pipes with subprocess,...., but I really don't have a solution for this. What could be done is call a bash script using Python (subprocess), but this is a little backwards and includes another file.~ ~3. I don't know how you want to handle the TIME($TIME) variable. If it is not set, I put it to "", but in the cronjob, it may not be correct. Perhaps you want it set to 0?~