You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Austin Thresher edited this page Aug 1, 2019
·
8 revisions
Build Instructions
After cloning OpenPV:
cd OpenPV; git checkout pybind; git submodule update
Now create a build folder and run ccmake as usual. Press T to open the advanced configuration and set the following options:
PV_BUILD_SHARED: ON
CUDA_NVCC_FLAGS: -Xcompiler -fPIC
CUDA_USE_STATIC_CUDA_RUNTIME: OFF
Run make and ensure PetaVision builds with no errors. Now go back into ccmake and enable:
PV_BUILD_PYTHON: ON
Run make one more time and there should now be a file with a name like PythonBindings.cpython-x.so. Make a symlink to this file inside OpenPV/python/OpenPV:
cd OpenPV/python/OpenPV; ln path-to-PythonBindings-file .
Now you can use the bindings by adding this to the top of your Python script: