changed memset to a cuda call