Skip to content

lgarrison/cupy-nanobind-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cupy-nanobind-example

A minimal demo of a Python project that uses scikit-build-core to compile a CUDA CPython extension that accepts a cupy array via nanobind's DLPack support. This is possibly the most technologies I've strung together in a single sentence.

Build and install (basic)

$ pip install .

Build and install (editable)

$ pip install scikit-build-core nanobind ninja
$ pip install -e . --no-build-isolation

Test

$ python test.py

About

A tiny demo of calling nanobind with a cupy array

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published