I get access to CUDA 6 RC as register developer and I want try to use new feature of CUDA 6: Unified Memory. So, I created simple example when I try use this feature: Here is me example:
I have the same problem. cudaMallocManaged returns and the pointer is NULL. I have tried with -arch=sm_20, 30, and 35, and I am using a GTX780. I also cannot find any official documentation for this function.
Edit: I found the documentation included in the toolkit installer. It states:
Unified Memory has three basic requirements:
a GPU with SM architecture 3.0 or higher (Kepler class or newer)
a 64-bit host application and operating system, except on Android
Linux or Windows
I’m running on Windows in 32-bit mode so that’s probably it.
I have the same problem. cudaMallocManaged() returns NULL after some successful allocation.
Is there any memory limitation on cudaMallocManaged except global memory size? I am just allocating some MBs and then get null pointer!