README.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. The Nearest Neighbor application computes the nearest location to a specific
  2. latitude and longitude for a number of hurricanes (data from: http://weather.unisys.com/hurricane/).
  3. The Makefile may need to be adjusted for different machines, but it was written for Mac OS X and
  4. Linux with either NVIDIA or AMD OpenCL SDKs.
  5. The hurricane data is located in a number of data files that are copied into the working
  6. directory by the Makefile. A separate text file lists the names of the data files that
  7. will be used, and it is this text file that should be passed to the application (see usage, below).
  8. Nearest Neighbor Usage
  9. nearestNeighbor [filename] -r [int] -lat [float] -lng [float] [-hqt] [-p [int] -d [int]]
  10. example:
  11. $ ./nearestNeighbor filelist.txt -r 5 -lat 30 -lng 90
  12. filename the filename that lists the data input files
  13. -r [int] the number of records to return (default: 10)
  14. -lat [float] the latitude for nearest neighbors (default: 0)
  15. -lng [float] the longitude for nearest neighbors (default: 0)
  16. -h, --help Display the help file
  17. -q Quiet mode. Suppress all text output.
  18. -t Print timing information.
  19. -p [int] Choose the platform (must choose both platform and device)
  20. -d [int] Choose the device (must choose both platform and device)
  21. Notes: 1. The filename is required as the first parameter.
  22. 2. If you declare either the device or the platform,
  23. you must declare both.