Andrea Gussoni 846e980370 Converted tabs to spaces and fixed indentation 7 vuotta sitten
..
Makefile 1f1ceb7172 Initialized repo with Rodinia 3.1 8 vuotta sitten
README.txt 1f1ceb7172 Initialized repo with Rodinia 3.1 8 vuotta sitten
clutils.cpp 846e980370 Converted tabs to spaces and fixed indentation 7 vuotta sitten
clutils.h 846e980370 Converted tabs to spaces and fixed indentation 7 vuotta sitten
filelist.txt 1f1ceb7172 Initialized repo with Rodinia 3.1 8 vuotta sitten
gettimeofday.cpp 1f1ceb7172 Initialized repo with Rodinia 3.1 8 vuotta sitten
gettimeofday.h 1f1ceb7172 Initialized repo with Rodinia 3.1 8 vuotta sitten
ipoint.h 1f1ceb7172 Initialized repo with Rodinia 3.1 8 vuotta sitten
nearestNeighbor.cpp 846e980370 Converted tabs to spaces and fixed indentation 7 vuotta sitten
nearestNeighbor.h 846e980370 Converted tabs to spaces and fixed indentation 7 vuotta sitten
nearestNeighbor_kernel.cl 1f1ceb7172 Initialized repo with Rodinia 3.1 8 vuotta sitten
run 1f1ceb7172 Initialized repo with Rodinia 3.1 8 vuotta sitten
run-cpu 7b343ecff0 Changed benchmark parameters for XU3 compatibility 7 vuotta sitten
run-gpu 7b343ecff0 Changed benchmark parameters for XU3 compatibility 7 vuotta sitten
run-gpu-primary 7b343ecff0 Changed benchmark parameters for XU3 compatibility 7 vuotta sitten
run-gpu-secondary 7b343ecff0 Changed benchmark parameters for XU3 compatibility 7 vuotta sitten
utils.cpp 1f1ceb7172 Initialized repo with Rodinia 3.1 8 vuotta sitten
utils.h 1f1ceb7172 Initialized repo with Rodinia 3.1 8 vuotta sitten

README.txt

The Nearest Neighbor application computes the nearest location to a specific
latitude and longitude for a number of hurricanes (data from: http://weather.unisys.com/hurricane/).

The Makefile may need to be adjusted for different machines, but it was written for Mac OS X and
Linux with either NVIDIA or AMD OpenCL SDKs.

The hurricane data is located in a number of data files that are copied into the working
directory by the Makefile. A separate text file lists the names of the data files that
will be used, and it is this text file that should be passed to the application (see usage, below).

Nearest Neighbor Usage

nearestNeighbor [filename] -r [int] -lat [float] -lng [float] [-hqt] [-p [int] -d [int]]

example:
$ ./nearestNeighbor filelist.txt -r 5 -lat 30 -lng 90

filename the filename that lists the data input files
-r [int] the number of records to return (default: 10)
-lat [float] the latitude for nearest neighbors (default: 0)
-lng [float] the longitude for nearest neighbors (default: 0)

-h, --help Display the help file
-q Quiet mode. Suppress all text output.
-t Print timing information.

-p [int] Choose the platform (must choose both platform and device)
-d [int] Choose the device (must choose both platform and device)


Notes: 1. The filename is required as the first parameter.
2. If you declare either the device or the platform,
you must declare both.