README.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. The Gaussian Elimination application solves systems of equations using the
  2. gaussian elimination method.
  3. The application analyzes an n x n matrix and an associated 1 x n vector to solve a
  4. set of equations with n variables and n unknowns. The matrix and vector describe equations
  5. of the form:
  6. a0x + b0y + c0z + d0w = e0
  7. a1x + b1y + c1z + d1w = e1
  8. a2x + b2y + c2z + d2w = e2
  9. a3x + b3y + c3z + d3w = e3
  10. where in this case n=4. The matrix for the above equations would be as follows:
  11. [a0 b0 c0 d0]
  12. [a1 b1 c1 d1]
  13. [a2 b2 c2 d2]
  14. [a3 b3 c3 d3]
  15. and the vector would be:
  16. [e0]
  17. [e1]
  18. [e2]
  19. [e3]
  20. The application creates a solution vector:
  21. [x]
  22. [y]
  23. [z]
  24. [w]
  25. The Makefile may need to be adjusted for different machines, but it was written for Mac OS X and
  26. Linux with either NVIDIA or AMD OpenCL SDKs.
  27. Additional input files can be created with the matrixGenerator.py file in the data folder.
  28. Gaussian Elimination Usage
  29. gaussianElimination [filename] [-hqt] [-p [int] -d [int]]
  30. example:
  31. $ ./gaussianElimination matrix4.txt
  32. -f [filename] The filename that holds the matrix data
  33. -s [int] Generate matrix and rhs in specified size
  34. -h, --help Display the help file
  35. -q Quiet mode. Suppress all text output.
  36. -t Print timing information.
  37. -p [int] Choose the platform (must choose both platform and device)
  38. -d [int] Choose the device (must choose both platform and device)
  39. Notes: 1. The filename is required as the first parameter.
  40. 2. If you declare either the device or the platform,
  41. you must declare both.
  42. ******Adjustable work group size*****
  43. The kernel 2 has square shape
  44. The actually dimension = RD_WG_SIZE_1_0 * RD_WG_SIZE_1_1
  45. USAGE:
  46. make clean
  47. make KERNEL_DIM="-DRD_WG_SIZE_0=16 -DRD_WG_SIZE_1_0=16 -DRD_WG_SIZE_1_1=16"