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

22×72×17 Posts

Are your worktodo.txt lines of this format?:

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:

import subprocess
import os

from google.colab import drive

if not os.path.exists('/content/drive/My 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
!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
!sudo make install

%cd ..
!git clone
%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:

!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