![]() |
|
|
#914 | |
|
Jul 2004
Milan, Ita
2×7×13 Posts |
Quote:
Hence, the "not needed". Should have force-refreshed results page... Thus, facepalm on me, and my apologies for the noise. |
|
|
|
|
|
|
#915 |
|
"Dylan"
Mar 2017
3·193 Posts |
Introducing tf1G.py v0.14:
New feature: you can set the maximum number of loops to run by setting the variable MAXLOOPS. Setting it to 0 will mean the script runs until something happens that causes it to end (like Ctrl+C, updates, etc.). |
|
|
|
|
|
#916 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
37·263 Posts |
It's been a little while since anyone posted here, so...
It empirically appears that Colab is once again viable for both GPU and CPU compute. Several GPU72_TF Notebook users have been getting a generous amount of compute the last month. Thanks, Google!!! You /have/ to be aware of what we're doing. Perhaps not the use cases originally envisioned, it can easily be argued that a great deal of education is going on here! I myself have learned a tonne! One data point for anyone doing work with these things, be aware of something important which just bit me /hard/... If you launch a script from a Notebook Section's Python code block, and that script then launches a background process, it is NOT killed (read: SIGINT, SIGHUP, SIGKILL) if the section is "Interrupted". Something as simple as: Code:
$Rslt = `./payload.pl </dev/null >/dev/null 2>/dev/null &`; Edit: Oh, forgot to mention... A new GPU72_TF Colab user happened by yesterday, and spun up a session in minutes. Cool. However, he mentioned that he also tried running it on Kaggle, and while it ran fine, his account was banned within minutes. He said he didn't care, as he never used Kaggle anymore. But I thought that worth mentioning. I'll have to put warning language on the GPU72 Notebook code pages. Last fiddled with by chalsall on 2020-03-04 at 17:11 |
|
|
|
|
|
#917 | |
|
Bemusing Prompter
"Danny"
Dec 2002
California
2×5×239 Posts |
Quote:
|
|
|
|
|
|
|
#918 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
31·173 Posts |
|
|
|
|
|
|
#919 | |
|
1976 Toyota Corona years forever!
"Wayne"
Nov 2006
Saskatchewan, Canada
22×7×167 Posts |
Quote:
I see a directory called: My Drive/Colab Notebooks In here are all my workbooks And here is where I placed gpuowl.exe Then..... 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/Colab Notebooks/'
!cp 'gpuowl.exe' /usr/local/bin/
!chmod 755 '/usr/local/bin/gpuowl.exe'
!/usr/local/bin/gpuowl.exe -use ORIG_X2,MERGED_MIDDLE
Code:
[Errno 2] No such file or directory: '/content/drive/My Drive/Colab Notebooks/' /content cp: cannot stat 'gpuowl.exe': No such file or directory chmod: cannot access '/usr/local/bin/gpuowl.exe': No such file or directory /bin/bash: /usr/local/bin/gpuowl.exe: No such file or directory Code:
from google.colab import drive
drive.mount('/content/drive')
!chmod 777 '/content/drive/My Drive/gpuowl'
!cd '/content/drive/My Drive/gpuowl' && LD_LIBRARY_PATH="lib:${LD_LIBRARY_PATH}" && chmod 777 gpuowl && chmod 777 worktodo.txt && ./gpuowl -use ORIG_X2 -block 200 -log 120000 -maxAlloc 10240 -user petrw1 -cpu colab/K80
Code:
Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount("/content/drive", force_remount=True).
/bin/bash: ./gpuowl: Is a directory
[CODE]https://drive.google.com/drive/folders/1DM****************** as Code:
%cd '/content/drive/folders/1DM**********' Thanks |
|
|
|
|
|
|
#920 | |
|
Oct 2019
5F16 Posts |
Quote:
Maybe because Colab Notebooks is a special folder, thus caused the error. Last fiddled with by Fan Ming on 2020-03-18 at 03:27 |
|
|
|
|
|
|
#921 |
|
1976 Toyota Corona years forever!
"Wayne"
Nov 2006
Saskatchewan, Canada
22×7×167 Posts |
If I go to Google Drive and open directory My Drive.
It shows up on the URL bar as: https://drive.google.com/drive/my-drive But in the folder list as: My Drive My Drive contains a file with the source code for each Notebook session I am running and gpuowl.exe. It has subfolders of - Colab Notebooks with more source code files of Notebook session I have run - ColabWork (A new folder I created) with another copy of gpuowl.exe HOWEVER in my Python window when I run this code: 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'
for x in os.listdir('.'):
print (x)
Code:
/content/drive/My Drive cudapm1 gpuowl |
|
|
|
|
|
#922 |
|
1976 Toyota Corona years forever!
"Wayne"
Nov 2006
Saskatchewan, Canada
22×7×167 Posts |
I ran the install script provided by kriesel and ended up with this folder/contents:
Code:
/content/drive/My Drive/cudapm1 cudapm1-0.20 cudapm1-0.20.tar.gz /content/drive/My Drive/cudapm1/cudapm1-0.20 readme.txt CUDAPm1.ini libcufft.so.5.5 CUDAPm1 cudapm1-setup.txt I read that I might need run in from of this. I tried both. Code:
./CUDAPm1 61408363 -b1 600000 -b2 12000000 -f 3360k Code:
File "<ipython-input-22-2b58d7006908>", line 18
run ./CUDAPm1 -cufftbench 1k to 65536k 2 times
^
SyntaxError: invalid syntax
If so am I on the right track here: https://pypi.org/project/make/ Thanks |
|
|
|
|
|
#923 |
|
1976 Toyota Corona years forever!
"Wayne"
Nov 2006
Saskatchewan, Canada
10010010001002 Posts |
import subprocess
subprocess.call("'/content/drive/My Drive/cudapm1/cudapm1-0.20/CUDAPm1 61408363 -b1 600000 -b2 12000000 -f 3360k'") FileNotFoundError Traceback (most recent call last) <ipython-input-15-1b23572579e6> in <module>() 18 import subprocess 19 ---> 20 subprocess.call("'/content/drive/My Drive/cudapm1/cudapm1-0.20/CUDAPm1 61408363 -b1 600000 -b2 12000000 -f 3360k'") /usr/lib/python3.6/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session) 1362 if errno_num == errno.ENOENT: 1363 err_msg += ': ' + repr(err_filename) -> 1364 raise child_exception_type(errno_num, err_msg, err_filename) 1365 raise child_exception_type(err_msg) 1366 FileNotFoundError: [Errno 2] No such file or directory: "'/content/drive/My Drive/cudapm1/cudapm1-0.20/CUDAPm1 61408363 -b1 600000 -b2 12000000 -f 3360k'": "'/content/drive/My Drive/cudapm1/cudapm1-0.20/CUDAPm1 61408363 -b1 600000 -b2 12000000 -f 3360k'" |
|
|
|
|
|
#924 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
230038 Posts |
Quote:
Also, wrt your previous message, was your attempt to run "./CUDAPm1" within a Notebook section? If so, you need to do "!./CUDAPm1" instead, since it's within the Python shell. |
|
|
|
|
![]() |
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 |