| 123456789101112131415161718192021 |
- CFLAGS += $(shell pkg-config --cflags starpu-1.2)
- LDFLAGS += $(shell pkg-config --libs starpu-1.2)
- CC = gcc
- NVCC = nvcc
- main: main.o cpu_output.o output_thread_aggregation.o
- $(NVCC) $(CFLAGS) -o main main.o cpu_output.o output_thread_aggregation.o $(LDFLAGS)
- main.o: main.c
- $(CC) $(CFLAGS) -c main.c $(LDFLAGS)
- cpu_output.o: cpu_output.c
- $(CC) $(CFLAGS) -c cpu_output.c $(LDFLAGS)
- output_thread_aggregation.o: output_thread_aggregation.cu
- $(NVCC) $(CFLAGS) -c output_thread_aggregation.cu $(LDFLAGS)
- clean:
- rm -f main *.o
|