rawspec_reset_integration must return an error when cudaMemset fails
texadactyl opened this issue · 0 comments
texadactyl commented
in rawspec_gpu.cu, rawspec_reset_integration starts at line 1754.
// For each output product
for(i=0; i < ctx->No; i++) {
// Clear power output buffer
cuda_rc = cudaMemset(gpu_ctx->d_pwr_out[i], 0,
abs(ctx->Npolout[i])*ctx->Nb*ctx->Ntpb*ctx->Nc*sizeof(float));
if(cuda_rc != cudaSuccess) {
PRINT_CUDA_ERRMSG(cuda_rc);
return 0; // <--------------- return 1 just like other error returns
}