-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (30 loc) · 816 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto.
#
OPT=-O2
FC=pgf90
F90FLAGS = $(OPT)
OBJ=o
EXE=out
RUN=
UNAME := $(shell uname -a)
ifeq ($(findstring CYGWIN_NT, $(UNAME)), CYGWIN_NT)
OBJ=obj
EXE=exe
endif
# Uncomment the CUDAFLAGS line if you have hardware requirements that require
# a specific compute capability
#CUDAFLAGS = -Mcuda=cc12
all: build run verify
build: local.cuf
$(FC) $(CUDAFLAGS) $(F90FLAGS) -Mcuda=ptxinfo -c $<
@if [ -e ./local.$(OBJ) ]; then echo "Test Passed"; else echo "Test Failed"; fi;
run:
verify:
clean:
@echo 'Cleaning up...'
@rm -rf *.$(OBJ) *.mod *.dwf *.pdb prof