![]() |
[QUOTE=xx005fs;527849]I have contacted their support to hopefully get my account unbanned since I wasn't told that I violated their terms of service or anything.[/QUOTE]
Weird. And disturbing -- IMO that shouldn't have happened. By definition, you are working within a *very* well sandboxed VM. It shouldn't be possible to do anything inside it which causes any harm. |
pepi37: I can think of two ways to do it:
1) (Simplest way but requires more coding and requires editing every time) Write the header using the echo command: [CODE]!echo ABC $a^$b+1 // 3238000000000000000 >> 131072.txt[/CODE]then the lines in the file you want to test [CODE]!echo b 131072 >> 131072.txt[/CODE]where b comes from the sieve file. 2) (Requires you to upload the file, or a chunk of it) Copy the header and the lines to test into a new file, and then upload somewhere on the Internet. Then run [CODE]!wget <link to file>[/CODE]in the same directory as your genefer executable. And then run the executable. Here, the only thing that you may have to change is the link (if say, you use MediaFire to host the file, like I do for the CADO suite). From the last post, a test in your file takes about 6 minutes on a P100, so each chunk should be 90 lines. |
Thanks!
I upload it to my web page: then do wget and processing is started:) Now I will wait until first result is over to see where I can found it Must be browser window opened or I can close it? |
[QUOTE=chalsall;527858]Weird. And disturbing -- IMO that shouldn't have happened.
By definition, you are working within a *very* well sandboxed VM. It shouldn't be possible to do anything inside it which causes any harm.[/QUOTE] Totally agreed. However, I am not sure if it's due to my profile picture which I uploaded yesterday or the VM I used. So far I can only hope for the best and probably fire up another instance using my other Google accounts. I guess we shall see if I get unbanned or not, and I hope they give me a reason why I was banned in the first place. |
Any way of installing nvidia opencl without reinstalling the driver and rebuilding the kernel? I am suspecting that might be why kaggle has banned me since I unknowingly messed with their driver and kernel I suppose.
|
[QUOTE=Dylan14;527399]Indeed it is possible:
[CODE]#Notebook to run mprime on a Colab thing 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/' if not os.path.exists('/content/drive/My Drive/mprime/'): !mkdir mprime %cd '/content/drive/My Drive/mprime//' #fetch mprime executable if we don't have it if not os.path.exists('mprime'): !wget http://www.mersenne.org/ftp_root/gimps/p95v298b6.linux64.tar.gz !tar -zxvf p95v298b6.linux64.tar.gz #!ls #run mprime #first, create local.txt and prime.txt if they don't already exist if not os.path.exists('prime.txt'): !echo V24OptionsConverted=1 > prime.txt !echo WGUID_version=2 >> prime.txt !echo StressTester=0 >> prime.txt !echo UsePrimenet=1 >> prime.txt !echo DialUp=0 >> prime.txt #change the user ID to your own or use ANOYNOMUS to work anoynomusly !echo V5UserID=Dylan14 >> prime.txt !echo Priority=1 >> prime.txt #Since Drive is persistant, can set DaysOfWork as desired: !echo DaysOfWork=1 >> prime.txt #This comes from undoc.txt. !echo MaxExponents=1 >> prime.txt !echo RunOnBattery=1 >> prime.txt #This sets the work preference. In this case it's set to 5, ECM on Mersennes with no known factors !echo WorkPreference=5 >> prime.txt !echo [PrimeNet] >> prime.txt !echo Debug=0 >> prime.txt !echo ProxyHost= >> prime.txt if not os.path.exists('local.txt'): !echo WorkerThreads=1 >> local.txt !echo CoresPerTest=2 >> local.txt !echo ComputerID=colab >> local.txt !echo Memory=8192 during 7:30-23:30 else 8192 >> local.txt #now run !chmod +x mprime !cat prime.txt !cat local.txt !./mprime[/CODE] Of course, change the UserID as desired and the work preference as desired. This also allows us to get around the welcome text and start compute right away. And I can confirm that it works: I have an ECM assignment to me assigned to a computer called colab.[/QUOTE] I switched a copy of the preceding to PRP first time tests and added comments for all the mprime work types I could find. It fails when I run it from a web browser on a Windows 7 system; haven't tried it from a linux system since I have few if any. (Maybe a local VM lying around.) Script:[CODE]#Notebook to run mprime on a Colab thing 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/' if not os.path.exists('/content/drive/My Drive/mprime/'): !mkdir mprime %cd '/content/drive/My Drive/mprime//' #fetch mprime executable if we don't have it if not os.path.exists('mprime'): !wget http://www.mersenne.org/ftp_root/gimps/p95v298b6.linux64.tar.gz !tar -zxvf p95v298b6.linux64.tar.gz #!ls #run mprime #first, create local.txt and prime.txt if they don't already exist if not os.path.exists('prime.txt'): !echo V24OptionsConverted=1 > prime.txt !echo WGUID_version=2 >> prime.txt !echo StressTester=0 >> prime.txt !echo UsePrimenet=1 >> prime.txt !echo DialUp=0 >> prime.txt #change the user ID to your own or use ANOYNOMUS to work anonymously !echo V5UserID=Kriesel >> prime.txt !echo Priority=1 >> prime.txt #Since Drive is persistant, can set DaysOfWork as desired: !echo DaysOfWork=1 >> prime.txt #This comes from undoc.txt. !echo MaxExponents=1 >> prime.txt !echo RunOnBattery=1 >> prime.txt # (see http://v5.mersenne.org/v5design/v5webAPI_0.97.html, 7.3 GIMPS Work Preferences) # see also https://www.mersenneforum.org/showpost.php?p=505770&postcount=1 or prime95/mprime source code # 0 whatever makes sense (server decides) # 1 trial factoring LMH, not recommended for cpus, leave it to the much faster gpus # 2 trial factoring LMH, not recommended for cpus, leave it to the much faster gpus # 3 P-1 factoring small # 4 optimal P-1 factoring, large # 5 ECM factoring, smallish Mersennes # 6 factoring Fermat ECM # 7 factoring Cunningham ECM # 8-99 reserved # 100 LL first time test # 101 LL Double check # 102 LL test world-record # 103 LL test 10M digits (no longer relevant since even DC wavefront is 48M) # 104 LL test 100M digits # 105 LL first time test with no trial or P-1 factoring #106-149 reserved # 150 PRP first time test # 151 PRP double check # 152 PRP world record # 153 PRP 100M digit test # 154-159 reserved # 160 PRP cofactor test # 161 PRP cofactor double check #162-255 reserved #The next line sets the work preference. In this case it's set to 150, PRP first time test !echo WorkPreference=150 >> prime.txt !echo [PrimeNet] >> prime.txt !echo Debug=0 >> prime.txt !echo ProxyHost= >> prime.txt if not os.path.exists('local.txt'): !echo WorkerThreads=1 >> local.txt !echo CoresPerTest=2 >> local.txt !echo ComputerID=colab >> local.txt !echo Memory=8192 during 7:30-23:30 else 8192 >> local.txt #now run !chmod +x mprime !cat prime.txt !cat local.txt !./mprime[/CODE]Results: No colab computer appearing in my Account Info cpus list; Google drive authorization is prompted and completed, but contents are unchanged Activity appears to land on the colab VM drive not the Google drive Multiple error messages appear in the colab notebook output window, whose entire contents follow. [CODE]Go to this URL in a browser: https://accounts.google.com/o/oauth2/auth?client_id=947318989803-6bn6qk8qdgf4n4g3pfee6491hc0brc4i.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=email%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdocs.test%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.photos.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fpeopleapi.readonly&response_type=code Enter your authorization code: ·········· Mounted at /content/drive [Errno 2] No such file or directory: 'content/drive/My Drive/' /content [Errno 2] No such file or directory: '/content/drive/My Drive/mprime//' /content V24OptionsConverted=1 WGUID_version=2 StressTester=0 UsePrimenet=1 DialUp=0 V5UserID=Kriesel Priority=1 DaysOfWork=1 MaxExponents=1 RunOnBattery=1 WorkPreference=150 [PrimeNet] Debug=0 ProxyHost= WorkerThreads=1 CoresPerTest=2 ComputerID=colab Memory=8192 during 7:30-23:30 else 8192 /bin/bash: ./mprime: Is a directory[/CODE]Since I'm unfamiliar with Python, linux, and colab, and it does not show what line of code results in an error message or other output, trying to sort this out is a bit like trying to traverse an unknown maze blindfolded, with earplugs, handcuffed. Is the original script supposed to put the mprime folder, prime.txt, local.txt, mprime executable, checkpoint file etc on the user's Google drive? Has anyone succeeded in using colab from a Windows system? Wouldn't the operation of the script be browser-host-OS-independent? Most importantly, how to get this to work?! |
[QUOTE=xx005fs;527874]I am suspecting that might be why kaggle has banned me since I unknowingly messed with their driver and kernel I suppose.[/QUOTE]
Yeah, that would very likely be flagged as a "crack attempt" by the AIs. Just wondering how you intended to install and then run the custom kernel? You can't "shutdown -r now" within the instances. |
[QUOTE=kriesel;527902]Has anyone succeeded in using colab from a Windows system?[/QUOTE]
I personally never use Winblows, but I presume many here do, and use Colab / Kaggle successfully. [QUOTE=kriesel;527902]Wouldn't the operation of the script be browser-host-OS-independent?[/QUOTE] Absolutely. [QUOTE=kriesel;527902]Most importantly, how to get this to work?![/QUOTE] I have no cycles to try to help ATM, but I'm sure others will step forward to point you in the right direction. If the code can run via scripts, it can be made to run on Colab. |
[QUOTE=kriesel;527902]Most importantly, how to get this to work?![/QUOTE]
There's a typo in that script. This line, about the 4th line down, has a missing leading slash: %cd 'content/drive/My Drive/' Try %cd '/content/drive/My Drive/' |
I've not been able to get Kaggle up and running.
I went into Edit mode, and entered my access code, and then ran the application. It threw up the error: gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now I'm obviously not doing something right, but I'm unable to work out what. Can you help? |
[QUOTE=bayanne;527908]It threw up the error:
gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now I'm obviously not doing something right, but I'm unable to work out what.[/QUOTE] That's an exception I need to handle better -- I've got some Python code in beta which handles this, but it's not as clean as I'd like. What this error means is you don't have "Internet" turned on. There's a button on the right-hand-side of the Settings panel. Note you have to give an SMS-capable phone number for a shared secret exchange the first time you activate this. |
| All times are UTC. The time now is 22:43. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.