Commit 6911de0dbf6c78ac57bfee3fdd71a3d6dcc588a5
1 parent
7bfc39f4
added acknowledgement on top of the header file
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
stim/cuda/kmeans.cuh
1 | +//This software is dervied from Professor Wei-keng Liao's parallel k-means | ||
2 | +//clustering code obtained on November 21, 2010 from | ||
3 | +// http://users.eecs.northwestern.edu/~wkliao/Kmeans/index.html | ||
4 | +//(http://users.eecs.northwestern.edu/~wkliao/Kmeans/simple_kmeans.tar.gz). | ||
5 | +// | ||
6 | +//With his permission, Serban Giuroiu is publishing his CUDA implementation based on his code | ||
7 | +//under the open-source MIT license. See the LICENSE file for more details. | ||
8 | + | ||
9 | +// The original code can be found on Github ( https://github.com/serban/kmeans ) | ||
10 | +// Here I have just made a few changes to get it to work | ||
11 | + | ||
12 | + | ||
13 | + | ||
1 | 14 | ||
2 | #define malloc2D(name, xDim, yDim, type) do { \ | 15 | #define malloc2D(name, xDim, yDim, type) do { \ |
3 | name = (type **)malloc(xDim * sizeof(type *)); \ | 16 | name = (type **)malloc(xDim * sizeof(type *)); \ |