diff options
Diffstat (limited to 'src/boost/libs/numeric/odeint/examples/thrust/Makefile')
-rw-r--r-- | src/boost/libs/numeric/odeint/examples/thrust/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/boost/libs/numeric/odeint/examples/thrust/Makefile b/src/boost/libs/numeric/odeint/examples/thrust/Makefile new file mode 100644 index 00000000..5a33bdb3 --- /dev/null +++ b/src/boost/libs/numeric/odeint/examples/thrust/Makefile @@ -0,0 +1,34 @@ +# Copyright 2011-2014 Mario Mulansky +# Copyright 2011-2012 Karsten Ahnert +# +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or +# copy at http://www.boost.org/LICENSE_1_0.txt) + +# make sure BOOST_ROOT is pointing to your boost directory +# otherwise, set it here: +# BOOST_ROOT = /path/to/boost + +# path to the cuda installation +CUDA_ROOT = /usr/local/cuda +# target architecture +ARCH = sm_13 + +NVCC = $(CUDA_ROOT)/bin/nvcc + +INCLUDES += -I../../include/ -I$(BOOST_ROOT) + +NVCCFLAGS = -O3 $(INCLUDES) -arch $(ARCH) + +%.o : %.cu + $(NVCC) $(NVCCFLAGS) -c $< -o $@ + +% : %.o + $(NVCC) $(NVCCFLAGS) -o $@ $< + + +all : phase_oscillator_chain phase_oscillator_ensemble lorenz_parameters relaxation + + +clean : + -rm *~ *.o phase_oscillator_chain phase_oscillator_ensemble lorenz_parameters relaxation |