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 |
|
|---|
| 13 | PREC = FP64
|
|---|
| 14 | CC = pgcc
|
|---|
| 15 | OBJ=o
|
|---|
| 16 | EXE=out
|
|---|
| 17 | RUN=
|
|---|
| 18 | UNAME := $(shell uname -a)
|
|---|
| 19 | ifeq ($(findstring CYGWIN_NT, $(UNAME)), CYGWIN_NT)
|
|---|
| 20 | OBJ=obj
|
|---|
| 21 | EXE=exe
|
|---|
| 22 | endif
|
|---|
| 23 |
|
|---|
| 24 | CCFLAGS = -D$(PREC) -fast -Minline
|
|---|
| 25 | ACCFLAGS = -Minfo -acc $(OPT)
|
|---|
| 26 |
|
|---|
| 27 | all: build run verify
|
|---|
| 28 |
|
|---|
| 29 | build: nbodyacc2.c check.c
|
|---|
| 30 | $(CC) -c $(CCFLAGS) check.c
|
|---|
| 31 | $(CC) $(CCFLAGS) $(ACCFLAGS) -o nbody2.$(EXE) nbodyacc2.c check.$(OBJ)
|
|---|
| 32 |
|
|---|
| 33 | run: nbody2.$(EXE)
|
|---|
| 34 | $(RUN) ./nbody2.$(EXE)
|
|---|
| 35 |
|
|---|
| 36 | verify:
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | clean:
|
|---|
| 40 | @echo 'Cleaning up...'
|
|---|
| 41 | @rm -rf *.$(EXE) *.$(OBJ) *.dwf *.pdb prof
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.