pybind11/buildCuda.sh
Axel Huebl 812f7dde29 CUDA: Build Example (Ragged Version)
Quick & Dirty test of an example :)
2016-01-19 11:34:07 +01:00

11 lines
425 B
Bash
Executable File

# remove some doubled options & warnings from
# `python3.5-config --cflags --ldflags --libs`
nvcc -ccbin g++-4.9 \
-shared -std=c++11 --compiler-options -fPIC \
-I./include \
-I/usr/include/python3.5m -I/usr/include/python3.5m -DNDEBUG -g \
-L/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu -L/usr/lib \
-Xlinker -export-dynamic \
-lpython3.5m -lpthread -ldl -lutil -lrt -lm \
mandelbrot.cu -o mandelbrot.so