Hi,
I am facing a problem of “Cuda error: freeSegmentedScanStorage”. Anyone have idea why i get this error?
Here is a part of source code, it is doing the segmented Scan.
CUDPPConfiguration config3 = new CUDPPConfiguration();
config3.op = CUDPP_ADD;
config3.datatype = CUDPP_INT;
config3.algorithm = CUDPP_SEGMENTED_SCAN;
config3.options = CUDPP_OPTION_FORWARD | CUDPP_OPTION_INCLUSIVE;
CUDPPHandle handle3 = new CUDPPHandle();
cudppPlan(handle3, config3, length, 1, 0);
cudppSegmentedScan(handle3, segmentScan_odata, segmentScan_idata, segmentFlag, length);
cudaThreadSynchronize();
cudppDestroyPlan(handle3); //->got exception here
cuMemFree(segmentScan_idata);
cuMemFree(segmentFlag);
Cuda error: freeSegmentedScanStorage in file '/home/kashif/c++/RIPS/C/cudpp/src/app/segmented_scan_app.cu' in line 358 : unspecified launch failure.
I found in the segmented_scan_app.cu, the line 358 is:
CUT_CHECK_ERROR(“freeSegmentedScanStorage”)
Thanks.
Regards,
Lemon