is it possible to allocate global dynamic Memory on the device from the host ??
I must calculate a amount of Memory on the Host. Then after a init process this amount is fixed.
So i want to allocate some Memory on the Device within the pointer p_GLOBAL_HOLDER_Picture.
The Function call cudaMemcpyToSymbol(…) does not allocate any Memory, but executes without any error…
The Example is the same as in the CUDA-Programmers Guide.
Hi Robert, thanks for the answer. Can you briefly give me a working example? Because it does not work for me … The memory is not placed under my global pointer. The pointer remains NULL
Hi Robert,
okay you are right. I reduced everything in my program to the minimal example and then it works.
So it has to be something else. There are still some things different which I will then check piece by piece.
Many thanks for the support.