diff --git a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp --- a/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp +++ b/mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp @@ -528,8 +528,6 @@ int32_t dtp, CUstream /*stream*/) { assert(cusparseLt_initiated && "client did not call mgpuCreateSparseLtEnv()"); auto dnmat_handle = reinterpret_cast(dh); - // CusparseLt expects the descriptors to be zero-initialized. - memset(dnmat_handle, 0, sizeof(cusparseLtDnMatHandleAndData)); dnmat_handle->values = values; auto dTp = static_cast(dtp); // Assume row-major when deciding lda. @@ -550,8 +548,6 @@ void *values, int32_t dtp, CUstream /*stream*/) { assert(cusparseLt_initiated && "client did not call mgpuCreateSparseLtEnv()"); auto spmat_handle = reinterpret_cast(sh); - // CusparseLt expects the descriptors to be zero-initialized. - memset(spmat_handle, 0, sizeof(cusparseLtSpMatHandleAndData)); spmat_handle->values = values; auto dTp = static_cast(dtp); // Assume row-major when deciding lda.