-
Download pybind11 (https://github.com/pybind/pybind11/archive/v2.5.0.tar.gz)
-
Extract pybind11
-
Compile the
cppgpu
package:nvcc \ --compiler-options -fPIC \ -shared -std=c++11 \ -I/usr/local/lib/python3.5/dist-packages/numpy/core/include \ -Ipybind11/include \ `python3.5m-config --includes` \ `python3.5m-config --libs` \ -lcuda \ cppgpu.cpp -o cppgpu`python3.5m-config --extension-suffix`
-
This will result in a file that looks like
cppgpu.cpython-35m-x86_64-linux-gnu.so
. -
Run the example:
python3.5 example.py
-
Notifications
You must be signed in to change notification settings - Fork 0
coreylowman/pygpu
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published