run with cuda pointers