 	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)

#define INIT_MAX 100
void showResult(int m, int k, int *out);

// extern __shared__ int D[];

__device__ void computeDist(int m, int n, int *V, int *D)
// __device__ void computeDist(int m, int n, int *V)
{
	int i=blockIdx.x;
   	int j=threadIdx.x;

		cudaMalloc((void **)&d_V, m*n*sizeof(int));
		cudaMalloc((void **)&d_out, m*k*sizeof(int));

//		cudaMalloc((void **)&D, m*m*sizeof(int));

		for(i=0; i<m*n; i++)
		{
