In the main.c file you have accidentally leaved a **strcat(inFile,"/tmp/");** on line 28 so it is added to the beginning of the path of the input matrix.