Giter Site home page Giter Site logo

Comments (3)

andreinechaev avatar andreinechaev commented on September 7, 2024

Hello,
Just to be clear, it is not my post. The original post was on Medium https://medium.com/@iphoenix179/running-cuda-c-c-in-jupyter-or-how-to-run-nvcc-in-google-colab-663d33f53772
Even more interesting that you use the 2nd version of the plugin.
The cell command you use - %%cuda -n ... - Creates a file with the given name.
If I understand correctly, you want to load an external file from your Google Drive. It is an interesting use case, I can look into it.
To resolve your issue I'd recommend to either copy your code into the cell. Or as another option copy your cuda source file into the home directory and then run a cell with

%%cuda_run
# This line just to bypass an exeption and can contain any text

from nvcc4jupyter.

yaridor avatar yaridor commented on September 7, 2024

Hello,

If I understand correctly, you want to load an external file from your Google Drive. It is an interesting use case, I can look into it.

Yes. This is exactly what I want to do. thanks for considering this option

To resolve your issue I'd recommend to either copy your code into the cell. Or as another option copy your cuda source file into the home directory and then run a cell with
%%cuda_run

I am still not sure how to use "cuda_run" with my Cuda file in my home directory. do you have an example of using cuda_run ?

from nvcc4jupyter.

andreinechaev avatar andreinechaev commented on September 7, 2024

cuda_run will take all cuda files in your home dir and will compile and run them.
use it as in the initial comment. Just will an empty cell with exactly this

%%cuda_run
# This line just to bypass an exeption and can contain any text

from nvcc4jupyter.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.