fix memset inside cuda code.  Wrong size specified to memset.