View Single Post
Old 2020-08-31, 10:12   #33
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

1100011110112 Posts
Default

Are your worktodo.txt lines of this format?:
PRP=<AID>,1,2,<exponent>,-1,75,0


You can also try this notebook which compiles gmp-6.2.0 and gpuowl with gcc9 in /root folder and copies the executable "gpuowl" to the root of the Google Drive, I just tested it:


Code:
import subprocess
import os

from google.colab import drive

if not os.path.exists('/content/drive/My Drive'):
  drive.mount('/content/drive')

%cd ~
!sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
!sudo apt install -y gcc-9
!sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 800
!sudo apt install -y g++-9
!sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 800
!sudo apt-get -y install lzip
!sudo apt-get -y install m4
!sudo apt-get -y install libtool
!sudo apt-get -y install subversion
!sudo apt-get -y install make
!sudo apt-get -y install autoconf
!sudo apt-get -y install automake
!sudo wget https://gmplib.org/download/gmp/gmp-6.2.0.tar.lz
!sudo tar --lzip -xvf gmp-6.2.0.tar.lz
%cd gmp-6.2.0
!./configure ABI=64 CC=gcc CFLAGS="-O3 -m64 -mavx -mavx2" --build=x86_64-pc-linux-gnu --enable-cxx --enable-static --disable-shared
!make
!sudo make install

%cd ..
!git clone https://github.com/preda/gpuowl
%cd gpuowl
!make gpuowl
!cp gpuowl '/content/drive/My Drive/'

!cp /usr/lib/x86_64-linux-gnu/libstdc* '/content/drive/My Drive/'
Last line will copy the 2 libstdc* files to your Google Drive.
Each time you need to run gpuowl without compiling it, you will need this line first (after connecting to Google Drive) to copy them back to the correct folder:

Code:
!cp /content/drive/My\ Drive/libstdc* /usr/lib/x86_64-linux-gnu/

Last fiddled with by ATH on 2020-09-17 at 06:22
ATH is offline   Reply With Quote