From 5559d2a2e5f434cf48ae9f0daf701a28b67aa13e Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Tue, 10 Oct 2023 21:35:50 -0400 Subject: [PATCH] no need to memset dy_dtwo --- source/lib/src/gpu/tabulate.cu | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/lib/src/gpu/tabulate.cu b/source/lib/src/gpu/tabulate.cu index 57e889e716..a22742ae19 100644 --- a/source/lib/src/gpu/tabulate.cu +++ b/source/lib/src/gpu/tabulate.cu @@ -798,9 +798,6 @@ void tabulate_fusion_se_a_grad_gpu(FPTYPE* dy_dem_x, DPErrcheck(gpuDeviceSynchronize()); DPErrcheck(gpuMemset(dy_dem_x, 0, sizeof(FPTYPE) * nloc * nnei)); DPErrcheck(gpuMemset(dy_dem, 0, sizeof(FPTYPE) * nloc * nnei * 4)); - if (two_embed != nullptr) { - DPErrcheck(gpuMemset(dy_dtwo, 0, sizeof(FPTYPE) * nloc * nnei)); - } tabulate_fusion_se_a_grad_fifth_order_polynomial <<>>(