Skip to content

Instantly share code, notes, and snippets.

@soumith
Created July 14, 2014 20:23
Show Gist options
  • Save soumith/e77242509b4bac5c49f8 to your computer and use it in GitHub Desktop.
Save soumith/e77242509b4bac5c49f8 to your computer and use it in GitHub Desktop.
CC := clang
AR := ar
NVCC := nvcc
CUDA_OBJS := cuda/cwc_convnet.o
DEFINE_MACROS := -D HAVE_LIBPNG -D HAVE_LIBJPEG -D HAVE_FFTW3 -D HAVE_CBLAS -D HAVE_AVCODEC -D HAVE_AVFORMAT -D HAVE_SWSCALE -D HAVE_SSE2 -D HAVE_CUDA
CFLAGS := -msse2 $(DEFINE_MACROS)
NVFLAGS := --use_fast_math -arch=sm_30 $(DEFINE_MACROS)
LDFLAGS := -lm -lpng -ljpeg -lfftw3 -lfftw3f -lpthread -lblas -lavcodec -lavformat -lswscale -lcuda -lcudart -lcublas -L"/usr/local/cuda/lib64"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment