andreinechaev / nvcc4jupyter

A plugin for Jupyter Notebook to run CUDA C/C++ code
MIT License
200 stars 87 forks source link

Problem on %load_ext nvcc_plugin, when running CUDA #16

Closed amanmishra1321 closed 9 months ago

amanmishra1321 commented 1 year ago

I followed this tutorial to run CUDA code on COLAB:

https://medium.com/@iphoenix179/running-cuda-c-c-in-jupyter-or-how-to-run-nvcc-in-google-colab-663d33f53772

but when I give this command:

%load_ext nvcc_plugin

I get this error: Cloning git://github.com/andreinechaev/nvcc4jupyter.git to /tmp/pip-req-build-qlz3kouf ERROR: Command errored out with exit status 128: git clone -q git://github.com/andreinechaev/nvcc4jupyter.git /tmp/pip-req-build-qlz3kouf Check the logs for full command output.

ModuleNotFoundError Traceback (most recent call last) in <cell line: 2>() 1 get_ipython().system('pip install git+git://github.com/andreinechaev/nvcc4jupyter.git') ----> 2 get_ipython().run_line_magic('load_ext', 'nvcc_plugin')

7 frames

in load_ext(self, module_str) /usr/lib/python3.9/importlib/_bootstrap.py in _find_and_load_unlocked(name, import_) ModuleNotFoundError: No module named 'nvcc_plugin'
tojiboyevf commented 1 year ago

I guess the problem with pip install git+git://github.com/andreinechaev/nvcc4jupyter.git. Try pip install git+https://github.com/andreinechaev/nvcc4jupyter.git.

cosminc98 commented 9 months ago

You can now install directly from pypi. Follow the instructions on this page to learn more about using this extension.