device memory alloc error.