Go Back > Great Internet Mersenne Prime Search > PrimeNet > GPU to 72

Thread Tools
Old 2020-10-06, 20:44   #221
If I May
chalsall's Avatar
"Chris Halsall"
Sep 2002

2·4,643 Posts

Originally Posted by Aramis Wyler View Post
That notebook is pre-google_drive_mount_button, so you'd probably want to ignore the first 6 lines of that and use the mount button instead.
Thanks for sharing that knowledge. Yes, that was just the first "proof-of-concept" code I personally wrote. A /whole/ lotta further development work by many different people, and some changes with Colab itself, have occurred since.

Personally, I never mount Google Drives within Colab Instances, so definitely others (such as yourself) are more knowledgeable about the current state-of-the-art in that space.
chalsall is online now   Reply With Quote
Old 2020-10-07, 01:23   #222
Aramis Wyler
Aramis Wyler's Avatar
"Bill Staffen"
Jan 2013
Pittsburgh, PA, USA

409 Posts

Since the poster had asked about mfaktc, not gpuowl, I managed to make that work, but I had a heck of a time getting it to compile. Still, for reference, here is my mfactc wallet:

%cd '/content/drive/My Drive/mfaktc1'
!chmod 755 ../bin/*
!cp ../bin/libcuda* /usr/lib/x86_64-linux-gnu/
!python2 ../bin/ -u staffen -p YeahRight -U staffen -P NoReally -g 600 -e 76 -t 0
!cat worktodo.txt

And here is the code I put together (starting from ATH's gpuOwl compile code, and modifying from there) to get the cursed thing to compile for a Tesla V100. Note that I put a copy of the Makefile from the tfaktc folder on my google drive, that had a line for compute_70 in it. 75 did not work, nor do any of the ones that come in it. It uses to fetch work from gpu72 and upload it to primenet at the begining of the session. I used python2 to run that, because translating it into python3 made my hair turn grey.

%cd ~
!sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
!sudo apt install -y gcc-8
!sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800
!sudo apt install -y g++-8
!sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 800
!sudo apt-get -y install
!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 apt-get -y install cuda-toolkit-10-1
!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

!tar -xvf mfaktc-0.21.tar.gz
%cd ./mfaktc-0.21/src/
!cp '/content/drive/My Drive/bin/Makefile' ./

!cp ../mfaktc.exe '/content/drive/My Drive/bin/'
!cp /usr/local/cuda-10.1/targets/x86_64-linux/lib/ '/content/drive/My Drive/bin/'

Last fiddled with by Aramis Wyler on 2020-10-07 at 01:25
Aramis Wyler is offline   Reply With Quote
Old 2020-10-31, 12:17   #223
Oct 2012

2×5 Posts

I've spent the last few Saturday mornings trying to figure this out (I haven't done much coding since college), and I'm able to get almost everything to work, but I get stuck on the following lines

!cp -r '/content/drive/My Drive/bin/makefile' ./

I get this error:

Reading makefiles...
Reading makefile 'makefile'...
make: *** makefile: Is a directory. Stop.

I'm not sure what exactly is holding things up (I don't know why it thinks makefile is a directory). Or is there an alternative, such as sharing the executable that you were able to create? Thanks!
butera is offline   Reply With Quote
Old 2020-10-31, 16:46   #224
chris2be8's Avatar
Sep 2009

191810 Posts

!ls -ld makefile
That should tell you what it really is. If it is a file try posting the contents here (assuming it's not too big).

chris2be8 is offline   Reply With Quote

Thread Tools

All times are UTC. The time now is 19:17.

Sat Oct 31 19:17:23 UTC 2020 up 51 days, 16:28, 3 users, load averages: 1.69, 1.76, 1.83

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.