Skip to content

bernardelli/CUDA_CPP-Python-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building a CUDA/C++ Python Wrapper with CMake

This repository will give you a short example on how to build a C++ class with CUDA bindings into a Python wrapper.

Why would I use this?

It is a good idea to test a larger CUDA/C++ project with all the swiftness and convenience of Python.

Why CMake?

CMake is a great tool when you want a project to run on different computers with different OS or library paths, but sometimes writing the CMake configuration file can be a pain in the ass. I managed to make it work, so enjoy 😉

Requirements:

  • CMake
  • pybind11
  • CUDA
  • Python

To Do list

  • make it work on Visual Studio
  • clean up the code and write useful comments
  • make it work on Linux/gcc
  • write some cool examples here

About

Example of a Python wrapper for CUDA/ C++ classes 🐍

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published