johnaparker / pybind_examples

Examples of pybind11 based projects (using cmake)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example and template Python/C++ projects using Pybind11

cpp_only

Python bindings for a C++ only code-base

cpp_submodule

C++ library operates as a submodule to a Python library, allowing mixed Python and C++ usage

hpc_example

An example of the cpp_submodule type project with examples relevant to high performance computing. It demonstrates computing the dot product of two arrays using:

  • Native Python
  • NumPy + Python
  • Serial C++
  • OpenMP parallelization C++
  • MPI parallelization C++
  • GPU CUDA C++

misc

Miscellaneous examples, including:

  • Interfacing with Eigen Tensors
  • A 2D grid interpolation to speedup SciPy's RegularGridInterpolator
  • Interfacing with CUDA's FFT library, CUFFT, and comparing performance to NumPy and PyFFTW

About

Examples of pybind11 based projects (using cmake)


Languages

Language:Python 45.6%Language:C++ 40.1%Language:CMake 7.1%Language:Cuda 6.4%Language:Makefile 0.8%