Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80927998
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 3, 07:27
Size
508 B
Mime Type
text/x-makefile
Expires
Thu, Sep 5, 07:27 (2 d)
Engine
blob
Format
Raw Data
Handle
20476477
Attached To
R6832 iCAPs public
Makefile
View Options
INCLUDES = -lm -I$(CUDA_INCLUDE)
CFLAGS = $(INCLUDES)
LDFLAGS = -L$(CUDA_LIBRARY) -lcudart
MEX = mex
CXX = g++
NVCC = nvcc
#GPUFLAGS = -arch=sm_35 #Deneb
GPUFLAGS = -arch=sm_70 #v100
MEX2 = MyTemporal_MEX
CUDA1 = kernel
WRAP1 = wrapper
all: $(MEX2).mexa64
$(MEX2).mexa64: $(WRAP1).o $(CUDA1).o
$(MEX) -output $(MEX2) $(MEX2).cpp $^ $(LDFLAGS) $(CFLAGS)
%.o: %.cu
$(NVCC) -Xptxas="-v" -Xptxas -dlcm=ca -Xcompiler -fPIC -c -lineinfo $(GPUFLAGS) $(INCLUDES) $<
clean:
rm -rf *.o $(MEX2).mexa64
Event Timeline
Log In to Comment