Fixed duplicate file init
Don't allocate memory on GPU unless gpu acceleration enabled