New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create simple Google Colab demo #158
Conversation
Codecov Report
@@ Coverage Diff @@
## master #158 +/- ##
=======================================
Coverage 58.46% 58.46%
=======================================
Files 65 65
Lines 5549 5549
=======================================
Hits 3244 3244
Misses 2305 2305 Continue to review full report at Codecov.
|
Nice, look forward to trying it later today. This has been on my task list since that call, but I ran into some snag right away that I haven't found time to solve. (I had not used Colab with GPU before.) I see you built it from the autoconf branch, so that's good. Thanks! |
Okay, ran into an issue – could be colab, but could be an issue with ./configure too related to cuda arch detection? I copied the notebook you linked on your drive into my account. The blocks installing dependencies seemed to proceed okay. For the script that ran the bifrost install, the configure summary looked like this:
But then as soon as it started to run make, a failure was reported:
I ran this in the same session, to see the archs that nvcc supports:
So I think the configure reported that 30, 37 would work, but 30 did not. I changed the install script to use
and it seems to be doing better. Does it mean our auto-detection needs work? |
Follow-up: potentially useful section of the config.log when it auto-detected.
|
This was attempt in |
@MilesCranmer very cool! Nice there's a place with free GPUs. |
e45ac5d at least gets
|
Thanks! Will add the |
@MilesCranmer c3450e4 should fix the automatic arch. detection on colab. |
A couple of things I noticed from today:
and
|
bb01d95 takes care of the C++14 stuff. The Python API still has a version of '..'. |
d1430c3 takes care of the Python version problem. |
Works for me! Ready to merge? After the merge, the README.md link should be updated to https://colab.research.google.com/github/ledatelescope/bifrost/blob/master/BifrostDemo.ipynb |
Chris is also going to give this a try tomorrow. If that checks out as well then, yes, let's merge this. |
Hey guys, I was successful with the colab demo. I successfully built it from the latest commit on autoconf branch (d1430c3), without any special arguments to |
Google Colab is a web-based Jupyter notebook environment which gives free access to P100 GPUs. I think it will make for a great tool for trying out Bifrost without needing to do any configuration whatsoever; even less configuration than with Docker. (@jaycedowell and I discussed this in a call a month ago and I decided to get it working.)
This PR creates a Jupyter notebook that can be opened in colab, and will automatically configure and install Bifrost, with the GPU interface working(!), for users to try out.
The demo itself is pretty short, but could grow into a full tutorial. The new README link references the live copy of the notebook in the master branch so the colab will mirror the GitHub version.
https://colab.research.google.com/github/ledatelescope/bifrost/blob/master/BifrostDemo.ipynb
This link won't work until this is merged so until then you can use https://colab.research.google.com/drive/129ZH4VAnDPRMH3rR-OPiMr7pzr01ZSqf?usp=sharing.
For the most part the regular installation of Bifrost works (the
%%shell
Jupyter command can be used to install things in the virtual machine), but the one catch is you need to updateLD_LIBRARY_PATH
from within python. I also switched to use the autoconf version in #157 but the old installation seems to work also.Cheers,
Miles