Skip to content

Instantly share code, notes, and snippets.

@ChiFang
Created February 1, 2018 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChiFang/70b6ee3ac2d3266373706ac16ff90345 to your computer and use it in GitHub Desktop.
Save ChiFang/70b6ee3ac2d3266373706ac16ff90345 to your computer and use it in GitHub Desktop.
cuda makefile
pdda.so: pdda_cuda.o
g++ -fPIC -shared -o pdda.so ./src/pdda.cpp ./pdda_cuda.o -I ./src/ -I/usr/local/cuda/include -L/usr/local/cuda/lib64 -lcuda -lcudart `pkg-config --libs opencv`
pdda_cuda.o:
nvcc -c ./src/pdda_cuda.cu -o pdda_cuda.o
clean:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment