remoevd cuda double allocate's memset's pointer reference