makefile work, work on compiling with nvcc and mpicc
fixed hanging issue