This sample guide you how to use python call cuda via pybind11
sudo apt-get install python3-pybind11
mkdir build
cd build
cmake ..
make
cd ..
python test_add.py
hello
7
result_shape w= 3
sum: 0 2.0 2.0 4.0
sum: 1 2.0 2.0 6.0
sum: 2 2.0 2.0 8.0
[4. 6. 8.]