Comments (3)
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.
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.
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)
- Cuda not showing output in Google collab HOT 1
- Is it possible to include multiple files and then compile and link them ? HOT 2
- errors: " helper.py TypeError: a bytes-like object is required, not 'str' " and " 'Namespace' object has no attribute 'timeit' " HOT 2
- How do you pass image data from cv2 python to a %%cu file HOT 1
- Error while using in Colab HOT 3
- Needs Installation Instructions and More Detailed Usage Directives HOT 1
- Problem on %load_ext nvcc_plugin, when running CUDA HOT 2
- Is it possible to inclue external header files on colab file system? HOT 2
- Is it possible to specify C++ standard version for compilation? C++17, C++20? HOT 1
- ModuleNotFoundError: No module named 'nvcc_plugin' HOT 3
- cuda_runtime.h error on kaggle HOT 4
- new line is not detected HOT 2
- During installing NVCC plugin it's showing Module Not Found. HOT 1
- Include addtional cu/c++ files in jupyter HOT 3
- in google colab why there need to run following command in each new notebook. HOT 1
- nvprof HOT 1
- Error while trying to use %%cuda_run and %%cuda magic HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvcc4jupyter.