Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95008030
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
Thu, Dec 12, 02:54
Size
1 KB
Mime Type
text/x-makefile
Expires
Sat, Dec 14, 02:54 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22912533
Attached To
R11341 Introduction to CUDA
Makefile
View Options
F90=gfortran
NVCC=nvcc
LDFLAGS=-lc -lstdc++ -lcuda -lcudart -lcudadevrt
F90FLAGS= -ffree-line-length-0 -O3 -g
all: test_gradients.x
test_gradients.x: cudalloc.o grad_test.o prec_const_mod.o space_grid_mod.o cuda_interface_mod.o gradients_mod.o test_gradients.o
$(F90) $(LDFLAGS) cudalloc.o grad_test.o prec_const_mod.o space_grid_mod.o cuda_interface_mod.o \
gradients_mod.o test_gradients.o -o $@
test_gradients.o: test_gradients.F90
$(F90) $(F90FLAGS) -c test_gradients.F90 -o $@
cuda_interface_mod.o: cuda_interface_mod.F90
$(F90) $(F90FLAGS) -c cuda_interface_mod.F90 -o $@
space_grid_mod.o: space_grid_mod.F90
$(F90) $(F90FLAGS) -c space_grid_mod.F90 -o $@
prec_const_mod.o: prec_const_mod.F90
$(F90) $(F90FLAGS) -c prec_const_mod.F90 -o $@
gradients_mod.o: gradients_mod.F90
$(F90) $(F90FLAGS) -c gradients_mod.F90 -o $@
grad_test.o: grad_test.cu
$(NVCC) $(NVCCFLAGS) -c grad_test.cu -o $@
cudalloc.o: cudalloc.cu
$(NVCC) $(NVCCFLAGS) -c cudalloc.cu -o $@
clean:
rm *.x *.o
Event Timeline
Log In to Comment