added util code for gpu updated makefile