source: CIVL/examples/openacc/nbody/Makefile

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 1.0 KB
Line 
1################################################################################
2#
3# Copyright (c) 2016, NVIDIA Corporation. All rights reserved.
4#
5# Please refer to the NVIDIA end user license agreement (EULA) associated
6# with this source code for terms and conditions that govern your use of
7# this software. Any use, reproduction, disclosure, or distribution of
8# this software and related documentation outside the terms of the EULA
9# is strictly prohibited.
10#
11################################################################################
12
13PREC = FP64
14CC = pgcc
15OBJ = o
16EXE = out
17RUN =
18UNAME := $(shell uname -a)
19ifeq ($(findstring CYGWIN_NT, $(UNAME)), CYGWIN_NT)
20OBJ = obj
21EXE = exe
22endif
23
24CCFLAGS = -D$(PREC) -fast -Minline
25ACCFLAGS = -Minfo -acc $(OPT)
26
27all: build run verify
28
29build: nbodyacc.c check.c
30 $(CC) -c $(CCFLAGS) check.c
31 $(CC) $(CCFLAGS) $(ACCFLAGS) -o nbody.$(EXE) nbodyacc.c check.$(OBJ)
32
33run: nbody.$(EXE)
34 $(RUN) ./nbody.$(EXE)
35
36verify:
37
38
39clean:
40 @echo 'Cleaning up...'
41 @rm -rf *.$(EXE) *.$(OBJ) *.dwf *.pdb prof
Note: See TracBrowser for help on using the repository browser.