forked from lazarcl/research
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefileTemplate
More file actions
19 lines (13 loc) · 727 Bytes
/
makefileTemplate
File metadata and controls
19 lines (13 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#Template for the makefile. Add includes and libraries to LIBS as neccisarry
LIBS=-lnvidia-ml
FRAMEWORKFILES=arithmeticTests.cu testFramework.cu
HELPERFILES=testHelpers.cpp
all: arithmeticTest.out basePowerTest1.out basePowerTest2.out memoryTests.out
arithmeticTest.out: runArithmeticTests.cu $(FRAMEWORKFILES) $(HELPERFILES)
nvcc $< $(LIBS) -o $@ $(HELPERFILES)
basePowerTest1.out: runBasePowerTest1.cu $(FRAMEWORKFILES) $(HELPERFILES)
nvcc $< $(LIBS) -o $@ $(HELPERFILES)
basePowerTest2.out: runBasePowerTest2.cu $(FRAMEWORKFILES) $(HELPERFILES)
nvcc $< $(LIBS) -o $@ $(HELPERFILES)
memoryTests.out: runMemoryTests.cu $(FRAMEWORKFILES) $(HELPERFILES)
nvcc $< $(LIBS) -arch=sm_35 -o $@ $(HELPERFILES) memoryTests.cu