mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > Cloud Computing

Reply
Thread Tools
Old 2019-10-19, 18:25   #375
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

1100010101102 Posts
Default

Quote:
Originally Posted by xx005fs View Post
Any GPUOWL executable compiled on linux using rocm/nvidia driver (the latter I haven't tested) works just fine with colab. Since I personally had a linux system with rocm, compilation was as simple as invoking make in the terminal. I just simply popped the executable and a worktodo.txt file in the google drive, created a folder for all of them, and then it's crunching happily on those nvidia gpus.

I am having a lot of trouble finding cudalucas linux executables, neither could i find the source code. It will be great if I test the speed of cudalucas on those K80s to compare with gpuowl performance.
Here is CUDALucas posted by Dylan14
https://mersenneforum.org/showpost.p...&postcount=178

It works fine on Google Colab.

But on Kaggle it is complaining about:
/lib/x86_64-linux-gpu/libm.so.6: version 'GLIBC_2.27' not found

How did people get CUDALucas to work on Kaggle?
ATH is offline   Reply With Quote
Old 2019-10-19, 18:55   #376
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

9,767 Posts
Default

Quote:
Originally Posted by ATH View Post
But on Kaggle it is complaining about:
/lib/x86_64-linux-gpu/libm.so.6: version 'GLIBC_2.27' not found
Probably related... When I first tested my reverse tunnel on Kaggle it didn't work. The SSHd executable I compiled on Colab complained about the same error when running on Kaggle.

I've found that some executables compiled on Colab don't work on Kaggle, but conversely those compiled on Kaggle work in both environments.
chalsall is offline   Reply With Quote
Old 2019-10-19, 19:24   #377
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

2×1,579 Posts
Default

ok, I got CUDALucas compiled on Kaggle, it was actually pretty easy. I usually want to avoid compiling at all cost, because I'm bad at Linux.


EDIT:

Managed to upload the wrong file I think, this is the correct one:
cudalucas.tar.gz

Last fiddled with by ATH on 2019-10-19 at 20:19
ATH is offline   Reply With Quote
Old 2019-10-19, 22:15   #378
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

10101001011002 Posts
Default

Quote:
Originally Posted by Dylan14 View Post
After a bit of trial and error (plus some work in automating the checking of the logs for errors), I have a script that can be used to compile and run Mlucas, without needing to tunnel in. The script is below:

Code:
#code to compile and run Ernst Mayer's mlucas
import os
from google.colab import drive
if not os.path.exists('/content/drive/My Drive'):
  drive.mount('/content/drive')

!apt-get install gcc-8
%cd 'content/drive/My Drive/'
if not os.path.exists('/content/drive/My Drive/mlucas/'):
   !mkdir mprime
...
Well done. But I think that mkdir would be mlucas
kriesel is offline   Reply With Quote
Old 2019-10-19, 22:38   #379
Fan Ming
 
Oct 2019

5F16 Posts
Default

Quote:
Originally Posted by Fan Ming View Post
I succeeded at compiling gpuowl on Colab after soving many compilation errors.
Attached is the compiled executable.
Steps for using this executable on Google Colab(Ignore if you already know):
1.Create a folder on Google drive named "gpuowl-master".
2.Upload attached executable "gpuowl.exe" in this folder.
3.Use this ipynb code(don't forget to turn GPU accelerate on):
Code:
import os.path
from google.colab import drive

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

%cd '/content/drive/My Drive/gpuowl-master/'

!cp 'gpuowl.exe' /usr/local/bin/
!chmod 755 '/usr/local/bin/gpuowl.exe'

!/usr/local/bin/gpuowl.exe -use ORIG_X2
It seems work well, here is the output information(manually stopped after I see it seems work well):
Code:
/content/drive/My Drive/gpuowl-master
2019-10-19 16:31:38 gpuowl 
2019-10-19 16:31:38 Note: no config.txt file found
2019-10-19 16:31:38 config: -use ORIG_X2 
2019-10-19 16:31:38 77936867 FFT 4608K: Width 256x4, Height 64x4, Middle 9; 16.52 bits/word
2019-10-19 16:31:38 OpenCL args "-DEXP=77936867u -DWIDTH=1024u -DSMALL_HEIGHT=256u -DMIDDLE=9u -DWEIGHT_STEP=0x1.65cdc45f71f4cp+0 -DIWEIGHT_STEP=0x1.6e52dd530031p-1 -DWEIGHT_BIGSTEP=0x1.306fe0a31b715p+0 -DIWEIGHT_BIGSTEP=0x1.ae89f995ad3adp-1 -DORIG_X2=1  -I. -cl-fast-relaxed-math -cl-std=CL2.0"
2019-10-19 16:31:40 

2019-10-19 16:31:40 OpenCL compilation in 1453 ms
2019-10-19 16:31:50 77936867 OK     1000   0.00%; 3929 us/sq; ETA 3d 13:04; 9711fce020e74461 (check 2.15s)
2019-10-19 16:32:39 Stopping, please wait..
2019-10-19 16:32:41 77936867 OK    13500   0.02%; 3961 us/sq; ETA 3d 13:44; 350e9c68bedf46b6 (check 2.18s)
2019-10-19 16:32:41 Exiting because "stop requested"
2019-10-19 16:32:41 Bye
So why my attachment disappeared without notification... Did it violate any rules? Here I reupload it in zip.
Attached Files
File Type: zip gpuowl.zip (231.9 KB, 82 views)
Fan Ming is offline   Reply With Quote
Old 2019-10-19, 22:45   #380
Dylan14
 
Dylan14's Avatar
 
"Dylan"
Mar 2017

10010000112 Posts
Default

Quote:
Originally Posted by kriesel View Post
Well done. But I think that mkdir would be mlucas

Yep, that was a SPE as I must have just copied that over from the mprime script. Fixed.
Dylan14 is offline   Reply With Quote
Old 2019-10-20, 02:07   #381
xx005fs
 
"Eric"
Jan 2018
USA

22·53 Posts
Default

Quote:
Originally Posted by ATH View Post
Here is CUDALucas posted by Dylan14
https://mersenneforum.org/showpost.p...&postcount=178

It works fine on Google Colab.

But on Kaggle it is complaining about:
/lib/x86_64-linux-gpu/libm.so.6: version 'GLIBC_2.27' not found

How did people get CUDALucas to work on Kaggle?
I had to import a custom repository to install gcc8 and all the other updates to make softwares run on kaggle as it's running gcc6, especially gpuowl when it will frequently complain about missing libraries.

If you are considering running CUDALucas on kaggle, might as well run gpuowl since on the P100 GPU, gpuowl is around 1170us/it, while on CUDALucas (if i remembered correctly from my GCP instances back then) was around 1800us/it. Although robust error checking isn't required for these server parts with ECC, it's definitely recommended in my eyes still.
xx005fs is offline   Reply With Quote
Old 2019-10-20, 02:15   #382
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

1000011110002 Posts
Default

Quote:
Originally Posted by Fan Ming View Post
So why my attachment disappeared without notification... Did it violate any rules? Here I reupload it in zip.
Nice! I'm curious though about the changes you made - perhaps you could submit a pull request at github to add to the code?

On another note, using Google Drive in Colab, it prompts me basically every time for the "verification" code that you get from your email... is there a way around that so I only have to do that once? Or maybe I'm doing something wrong here...
kracker is offline   Reply With Quote
Old 2019-10-20, 05:23   #383
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

7·23·61 Posts
Default

Quote:
Originally Posted by Fan Ming View Post
So why my attachment disappeared without notification... Did it violate any rules? Here I reupload it in zip.
That was my oops (I believe). While .exe is an acceptable attachment type, it is too easy for someone to put something untoward up and having as an .exe could allow a user to accidentally run it. Zip's are better, since the user has an extra step of interaction. I dl'ed your attachment, ran a virus check on it zipped it, then went in and was swapping the zip in. (You have a low post count, so I was being cautious.) I was putting a note on the post. Then I decided to leave it be and closed the window and left for a funeral (extended family). I did not realize the deleted attachment would 'take' that way.

Sorry.
Uncwilly is offline   Reply With Quote
Old 2019-10-20, 05:58   #384
Fan Ming
 
Oct 2019

5·19 Posts
Default

Quote:
Originally Posted by kracker View Post
Nice! I'm curious though about the changes you made - perhaps you could submit a pull request at github to add to the code?
I just initized git (!git init) and installed libgmp3-dev(!apt-get install libgmp3-dev), and then I changed all <filesystem> to <experimental/filesystem>, fs = std::filesystem to fs = std::experimental::filesystem in .h and .cpp files which contains them. All this changes are learned from Google, and the changes in source files are just
compatible for older gcc versions(I saw the gcc version for notebooks on colab are 7.x when installing libgmp3-dev. When I googled the missing <filesystem> error later, I realized this and the way to solve the error I googled is exactly OK).

Quote:
Originally Posted by kracker View Post
On another note, using Google Drive in Colab, it prompts me basically every time for the "verification" code that you get from your email... is there a way around that so I only have to do that once? Or maybe I'm doing something wrong here...
Every time I log in my newly-registered Google account I have to sent a pin code to my smartphone.. But this because I'm from China, where cannot access Google unless using proxy from other country.. So maybe Google thought that my behavior is suspect. However, my older Google account doesn't have this problem and can login directly. No idea about why...

Last fiddled with by Fan Ming on 2019-10-20 at 06:08
Fan Ming is offline   Reply With Quote
Old 2019-10-20, 06:02   #385
Fan Ming
 
Oct 2019

5×19 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
That was my oops (I believe). While .exe is an acceptable attachment type, it is too easy for someone to put something untoward up and having as an .exe could allow a user to accidentally run it. Zip's are better, since the user has an extra step of interaction. I dl'ed your attachment, ran a virus check on it zipped it, then went in and was swapping the zip in. (You have a low post count, so I was being cautious.) I was putting a note on the post. Then I decided to leave it be and closed the window and left for a funeral (extended family). I did not realize the deleted attachment would 'take' that way.

Sorry.
That's OK. I got it.
Fan Ming is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternatives to Google Colab kriesel Cloud Computing 11 2020-01-14 18:45
Notebook enzocreti enzocreti 0 2019-02-15 08:20
Computer Diet causes Machine Check Exception -- need heuristics help Christenson Hardware 32 2011-12-25 08:17
Computer diet - Need help garo Hardware 41 2011-10-06 04:06
Workunit diet ? dsouza123 NFSNET Discussion 5 2004-02-27 00:42

All times are UTC. The time now is 16:27.


Mon Aug 2 16:27:12 UTC 2021 up 10 days, 10:56, 0 users, load averages: 3.34, 2.70, 2.46

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.