Finally got gpu version "working"