cudppCompact unspecified launch fail

HI,

The following is the exception error:


        Cuda error in file '/home/kashif/c++/RIPS/C/cudpp/src/app/scan_app.cu' in line 273 : unspecified launch failure.

It seems happen on cudppPlan:


        CUDPPConfiguration config5 = new CUDPPConfiguration();
        config5.op = CUDPP_ADD;
        config5.datatype = CUDPP_INT;
        config5.algorithm = CUDPP_COMPACT;
        config5.options = 0;
        CUDPPHandle handle5 = new CUDPPHandle();
        cudppPlan(handle5, config5, size, 1, 0);

Why I get this exception ?? Is it the value of “size” is too large??? The value of size is larger than 10M.

Regards,
Lemon

Hello Lemon,

In the scan_app.cu file in line 273 there seems to be a memory allocation (assuming that it did not change significantly since the last release). And when you have called the Configuration “config5” then I assume that you already created other configurations and associated plans. So it is most likely running out of memory.
Make sure that you free any memory that you do no longer need at this place. For example, you should also delete the handles with “cudppDestroyPlan” if you do no longer need them.

bye
Marco