mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Cloud Computing (https://www.mersenneforum.org/forumdisplay.php?f=134)
-   -   Google Diet Colab Notebook (https://www.mersenneforum.org/showthread.php?t=24646)

Fan Ming 2020-01-02 08:02

[QUOTE=kriesel;533927]Interesting.
I count "Tesla P100-PCIE-16GB" as 20,
and "GeForce GTX 1080 Ti" as 19.[CODE]CUDALucas v2.06beta 64-bit build, compiled May 5 2017 @ 13:02:54

binary compiled for CUDA 8.0
CUDA runtime version 8.0
CUDA driver version 8.0

------- DEVICE 0 -------
name GeForce GTX 1080 Ti
[/CODE]But, "GeForce GTX 1060 3GB" as 20 also, and no problem.[CODE]CUDALucas v2.06beta 64-bit build, compiled May 5 2017 @ 13:00:15

binary compiled for CUDA 6.50
CUDA runtime version 6.50
CUDA driver version 8.0

------- DEVICE 0 -------
name GeForce GTX 1060 3GB
[/CODE]Those are from flashjh's compiles for Windows.[/QUOTE]

Anyway, array out of bounds are undefined behaviours, it's not sure what they'll cause or whether problem occurs.:smile:

axn 2020-01-02 08:58

[QUOTE=kriesel;533927]Interesting.
I count "Tesla P100-PCIE-16GB" as 20,
and "GeForce GTX 1080 Ti" as 19.[/QUOTE]

[CODE]
char fftfile[32];
sprintf (fftfile, "%s fft.txt", g_dev.name);

char threadfile[32];
sprintf (threadfile, "%s threads.txt", g_dev.name);
[/CODE]
[c]Tesla P100-PCIE-16GB fft.txt[/c] is 28 characters. [c]Tesla P100-PCIE-16GB threads.txt[/c] is however 32 characters and there is no space to store the 0 byte string terminator. That could be it.

ATH 2020-01-02 11:28

[QUOTE=axn;533978][c]Tesla P100-PCIE-16GB fft.txt[/c] is 28 characters. [c]Tesla P100-PCIE-16GB threads.txt[/c] is however 32 characters and there is no space to store the 0 byte string terminator. That could be it.[/QUOTE]

Yeah that is it for sure, because I could run the -cufftbench with the old version without issues and -threadbench all the way through, but then it crashed at the end when it had to save the file.

Fan Ming 2020-01-02 13:48

Successfully completes a LL double check:
[M]50501939[/M]
About ~13 hours compute on colab P100.

chalsall 2020-01-02 16:44

[QUOTE=ATH;533985]Yeah that is it for sure...[/QUOTE]

Umm... Isn't this what strncpy() is for? :smile:

Dylan14 2020-01-02 17:00

1 Attachment(s)
Introducing tf1G.py v0.12:
A few bugs came up in running this on Colab:
* The name Error is not defined, which would occasionally cause the Colab interpreter to stop. To fix this, I replaced the raise Error(...) lines with a print statement followed by a sys.exit() (which in turn kills the interpreter).
* In the functions analyze_for_factors and count_exponents_tested, we previously blindly assumed the file exists (namely, results.txt). If we have submitted the results already and we kill and restart the script before it fetches more stuff, we get a FileNotFoundError. This has been rectified.
In addition, since it's a new year, the copyleft has been updated.

James Heinrich 2020-01-02 20:53

[QUOTE=Dylan14;534019]Introducing tf1G.py v0.12[/QUOTE]Not sure if it was intentional, but previous versions had an exponent range of 1000000000-4294967295, v0.12 has a range of 3320000000-3329999999 (lines 41-42).

Dylan14 2020-01-02 21:25

[QUOTE=James Heinrich;534042]Not sure if it was intentional, but previous versions had an exponent range of 1000000000-4294967295, v0.12 has a range of 3320000000-3329999999 (lines 41-42).[/QUOTE]


That isn't intentional, that is just the settings I have set for my computer. The range is still 1000000000-4294967295.

Dylan14 2020-01-02 22:35

1 Attachment(s)
Introducing tf1G.py v0.13: While fixing the bugs in the previous version, I created another by getting rid of an indent in the count_exponents_tested function, which broke the function. It has been fixed.
Also I set the min and max exponents back to the whole range. It is user adjustable though.

bayanne 2020-01-04 09:13

GPU availability seems to have become much more diffuclt in the last day ...

ATH 2020-01-04 11:20

Yeah, during the holidays I got a P100 right away almost every time I tried, also just after my previous session ended.
Many people did not bother using Colab during the holidays I guess.

But now it is back to "normal" or even harder than normal to get a GPU.


All times are UTC. The time now is 22:59.

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