Created
January 23, 2013 16:44
-
-
Save jeixav/4609559 to your computer and use it in GitHub Desktop.
Modified examples/thrust/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2009-2012 Mario Mulansky | |
# | |
# 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) | |
CC = gcc | |
NVCC = nvcc | |
INCLUDES += -I../../../../.. | |
# CUDA | |
# NVCCFLAGS = $(INCLUDES) | |
# LDLIBS = -lcudart | |
# OpenMP | |
NVCCFLAGS = -O3 $(INCLUDES) -Xcompiler -fopenmp \ | |
-DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_OMP | |
LDLIBS = -lcudart -lgomp | |
%.co : %.cu | |
$(NVCC) $(NVCCFLAGS) -c $< -o $@ | |
all : phase_oscillator_chain phase_oscillator_ensemble lorenz_parameters relaxation | |
phase_oscillator_chain.co : phase_oscillator_chain.cu | |
phase_oscillator_chain : phase_oscillator_chain.co | |
$(CC) -o phase_oscillator_chain $(LDFLAGS) $(LDLIBS) phase_oscillator_chain.co | |
phase_oscillator_ensemble.co : phase_oscillator_ensemble.cu | |
phase_oscillator_ensemble : phase_oscillator_ensemble.co | |
$(CC) -o phase_oscillator_ensemble $(LDFLAGS) $(LDLIBS) phase_oscillator_ensemble.co | |
lorenz_parameters : lorenz_parameters.co | |
$(CC) -o lorenz_parameters $(LDLIBS) lorenz_parameters.co | |
lorenz_parameters.co : lorenz_parameters.cu | |
relaxation : relaxation.co | |
$(CC) -o relaxation $(LDFLAGS) $(LDLIBS) relaxation.co | |
relaxation.co : relaxation.cu | |
clean : | |
-rm -f *~ *.o *.co phase_oscillator_chain phase_oscillator_ensemble lorenz_parameters relaxation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment