]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fiber/examples/cuda/Makefile
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / fiber / examples / cuda / Makefile
1 CUDA_PATH := /opt/cuda
2
3 NVCC := $(CUDA_PATH)/bin/nvcc
4
5 CPPFLAGS := -O2 -std=c++11
6 LDFLAGS := -g -L/usr/local/lib
7 INCLUDES := -I/usr/local/include -I$(CUDA_PATH)/include
8 LIBRARIES := -lboost_fiber -lboost_context -lboost_system -lboost_filesystem
9
10 all: build
11
12 build: single_stream multiple_streams
13
14 single_stream.o:single_stream.cu
15 $(NVCC) $(INCLUDES) $(CPPFLAGS) -o $@ -c $<
16
17 single_stream: single_stream.o
18 $(NVCC) $(LDFLAGS) -o $@ $+ $(LIBRARIES)
19
20 multiple_streams.o:multiple_streams.cu
21 $(NVCC) $(INCLUDES) $(CPPFLAGS) -o $@ -c $<
22
23 multiple_streams: multiple_streams.o
24 $(NVCC) $(LDFLAGS) -o $@ $+ $(LIBRARIES)
25
26 clean:
27 rm -f single_stream single_stream.o multiple_streams multiple_streams.o
28
29 clobber: clean