-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (15 loc) · 751 Bytes
/
Makefile
File metadata and controls
22 lines (15 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Damodar Rajbhandari (2023)
CUDA_TOOLKIT := $(shell dirname $$(command -v nvcc))/..
INC := -I$(CUDA_TOOLKIT)/include
EIGS_INC := -I /usr/include/eigen3
# `-g -G` option pair must be passed to nvcc to enable debugging using CUDA-GDB
main: maxeigenvalue.cu
nvcc -std=c++14 -g -G $(INC) maxeigenvalue.cu -o maxeigenvalue -lcusparse -lcusolver
mainspectra: maxeigenvaluespectra.cpp
g++ -std=c++14 ${EIGS_INC} maxeigenvaluespectra.cpp -o maxeigenvaluespectra
mainpower: maxeigenvaluepower.cu
nvcc -std=c++14 -g -G $(INC) maxeigenvaluepower.cu -o maxeigenvaluepower -lcusparse
all: main mainspectra mainpower
clean:
rm -f maxeigenvalue maxeigenvaluespectra maxeigenvaluepower
.PHONY: main mainspectra mainpower all clean