# BlasMeans
Using the BLAS (Basic Linear Algebra System) dgemm operation to perform the calculation of the distances in K-means.
# Prerequisits
- Set your MKL environment variables
(see [MKL ](https://software.intel.com/en-us/articles/intel-mkl-103-getting-started))
Example:
```
source /opt/intel/mkl/bin/mklvars.sh intel64
```
- A working CMake installation
(see [CMake website](https://cmake.org/))
# CMake Usage
```
mkdir build
cd build
cmake ..
make
```
Finally you can run BlasMeans with its parameters, and with random generated data:
* n (number of objects in Millions)
* k (number of clusters)
* d (dimensionality of the data)
* t (number of threads)
Example:
```
./blasMeans -n 64 -k 40 -d 20 -t 4
```