 	int *V, *out;				//host copies
 	int *d_V, *d_out;			//device copies
 	
-	int *D;						//will be replaced with shared memory
+//	int *D;						//will be replaced with shared memory
 
 	FILE *fp;
 	if(argc != 2)

	D[i*m+j] = dist;
}

__global__ void knn(int m, int n, int k, int *V, int *out, int *D)
// __global__ void knn(int m, int n, int k, int *V, int *out)
{
	int i,j;
	int dim;

		
		cudaMemcpy(d_V, V, m*n*sizeof(int), cudaMemcpyHostToDevice);

		knn<<<m, m, m*m*sizeof(int)>>>(m, n, k, d_V, d_out);

		cudaMemcpy(out, d_out, m*k*sizeof(int), cudaMemcpyDeviceToHost);

