GTX-1080ti Shows 9 GB Memory Available
11 次查看(过去 30 天)
显示 更早的评论
When I run gpuDevice on my GTX-1080ti (with 11GB total memory), it gives the following results. Does anyone know why it shows only 9.0 GB available (allowing for the byte-to-GB conversion of 1,073,741,824)? This is 2 GB less than the Total Memory.
Update1: I wrote some Matlab code using "gpuArray" and filled it with int64's until the program crashed from "out of memory", and yeah, I can only get up to just over 9 GB before it crashes. Here's my output:
Device GeForce GTX 1080 Ti has Total Installed Memory 11.00 GB
Device GeForce GTX 1080 Ti has Available Memory 9.03 GB
Array has 34809 x 34809 8-byte (int64) elements
Array consumes: 9.028 GB
Device GeForce GTX 1080 Ti has Available Memory 0.4031 MB after array fills GPU
Total GPU Memory minus Array Memory = 1.97 GB
Update2: When I go into Visual Studio and run "cudaMemGetInfo" on the GPU to get total, free, and used, the results right after I've filled the memory using gpuArray above show 10.7452 GB used (total - free), 0.254 GB free, and total 11GB. And at the same time Windows 10 Task Manager is showing 9.6 GB out of 11 GB is dedicated/used.
So I'm guessing the "available/free" numbers don't account for other apps using or requesting memory? Though why isn't Task Manager showing 10.7 GB used instead of 9.6 GB? Confusing...
Thanks
Name: 'GeForce GTX 1080 Ti'
Index: 1
ComputeCapability: '6.1'
SupportsDouble: 1
DriverVersion: 9.1000
ToolkitVersion: 8
MaxThreadsPerBlock: 1024
MaxShmemPerBlock: 49152
MaxThreadBlockSize: [1024 1024 64]
MaxGridSize: [2.1475e+09 65535 65535]
SIMDWidth: 32
TotalMemory: 1.1811e+10
AvailableMemory: 9.6938e+09
MultiprocessorCount: 28
ClockRateKHz: 1657500
ComputeMode: 'Default'
GPUOverlapsTransfers: 1
KernelExecutionTimeout: 1
CanMapHostMemory: 1
DeviceSupported: 1
DeviceSelected: 1
回答(3 个)
Joss Knight
2018-9-8
I answered this question to the best of my ability when it was first asked in this question by Pavel Sinha.
He indicates that this is a generally known issue. As far as I can tell, this is just the way the driver behaves with this card, it has nothing to do with MATLAB or any other particular CUDA application. I am still waiting for a response from NVIDIA on what is going on here.
2 个评论
Joss Knight
2018-9-12
NVIDIA have responded to confirm that this is expected behaviour. In summary:
- WDDM2 releases 90% of available memory to CUDA.
- A single application is only allowed to allocate 90% of that 90%, i.e. 81% of total memory.
- NVIDIA are working with Microsoft to tighten this bound, and/or remove it on non-display cards.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with GPU Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!