Open GoogleCodeExporter opened 9 years ago
I looked at your example code and tried compiling it. However, I saw that your
application is not passing the correct number of parameters to cudppPlan() (See
testrig for examples). You may be using an older version of cudpp. I also
noticed that you used uint32_t which is typdef'd to unsigned long int. I don't
think cudpp supports this type.
As far as cudaMalloc() calls, our current implementation does use
CUDA_SAFE_CALL (which checks for errors) when allocating data within cudpp.
Note: The public interface html's are out-of-date. I'll have to update those.
But for now please see cudpp_testrig for examples.
Original comment by rites...@gmail.com
on 17 Feb 2011 at 12:26
Ritesh: the new cudppPlan which takes an extra parameter is only in the trunk.
Most people don't get CUDPP out of svn so they would be using 1.1, not trunk.
Second, CUDA_SAFE_CALL only works in debug mode.
Finally, I assume uint32_t is a 32-bit unsigned integer, which we do support.
On some platforms unsigned long int is only 32-bits (you have to use unsigned
long long on windows to get a 64-bit integer, I believe).
Original comment by harr...@gmail.com
on 17 Feb 2011 at 12:41
Since CUDA_SAFE_CALL catches the issue in debug mode, I have updated the type
to Enhancement.
The enhancement is to return an error code when a cudaMalloc() fails.
Original comment by rites...@gmail.com
on 17 Feb 2011 at 5:24
Thanks, that is what i would like to have. There may be a little too much code
from my side for such a "small" problem.
Original comment by upfeffer...@gmail.com
on 17 Feb 2011 at 9:50
Original comment by harr...@gmail.com
on 6 Jul 2011 at 2:38
Original issue reported on code.google.com by
upfeffer...@gmail.com
on 16 Feb 2011 at 1:30Attachments: