Use a separate func for gpu memset().