No, try it yourself, remove a RAM stick and see your shared GPU memory decrease, add RAM stick with higher GB and you will see your shared GPU memory increase.
But it’s always half of the capacity of your RAM and I want to be it 1:1 ratio
You will find the amount of Shared GPU memory in the Task Manager.
As you see, I have 8.0 GB of Shared GPU memory and I have 16 GB of RAM
If you do 16 ÷ 2, you get 8.0 GB and that’s why I have as Shared GPU memory.
And cudaMallocHost actually allocate on this memory:
int* Data;
cudaMallocHost(&Data, 1000 * 1000 * 1000 * sizeof(int));
It gives