changed uint64_t to uintptr_t
change GPU status flag more transparently with VecRestoreArray
better makefile
use LocalSize() in place of Size() to handle parallel vectors