Sequential, MPI, and OpenCL implementations of the k-means clustering algorithm.
- OpenMPI
- OpenCL
- Python 2.7 (or greater)
A text file for the x coordinates and another for the y, example inputs are in the Data folder
Compile the programs with
make
Note: The default OpenCL compiler is nvcc, edit the makefile for AMD/Intel GPUs
./kMeans [n] [k] [x file] [y file]
Example:
./kMeans 1000 8 Data/X1000.txt Data/Y1000.txt
./kMeanMPI [n] [k] [x file] [y file]
./kMeansCL [n] [k] [x file] [y file]
python plot.py [x file] [y file]
python plotMPI.py [x file] [y file]
python plotOCL.py [x file] [y file]