MAX_DATA_SIZE undeclared identifier

Hey, probably a very basic error just not sure what i need to include to use the MAX_DATA_SIZE function, currently getting “undeclared identifier” error

thanks in advance

I’m not aware of such a macro in CUDA. If you are following a tutorial, you probably need to define it yourself with some value appropriate for the memory size of your card.

thanks, know anywhere i can get information on what an appropriate size is for my 2GB gfx card?

Look at the code and see how the allocated memory size depends on MAX_DATA_SIZE.
If you just want to run the sample code without much thinking, some small value like 10000 will probably do.