During cuda programming on my Jetson nano, I executed device query to check how many cuda cores in Jetson.
While looking at how the device query code works, I wondered how to calculate total amount of global memory.
But in device query, total amount of global memory was defined structure member of cudaDeviceProp.
In document here(https://docs.nvidia.com/cuda/cuda-runtime-api/structcudaDeviceProp.html), there is no expression how totalGlobalMem is processed. So I can’t inference that.
I want solution that calculates total amount of global memory.