开发者

How can I programmatically determine a GPU's memory bus width and clock rate?

开发者 https://www.devze.com 2023-01-06 10:52 出处:网络
How can I programmatically determine a GPU\'s memory bus width and memory clock rate?I want to use these numbers to compute the ma开发者_开发技巧ximum theoretical memory bandwidth.I\'m mostly interest

How can I programmatically determine a GPU's memory bus width and memory clock rate? I want to use these numbers to compute the ma开发者_开发技巧ximum theoretical memory bandwidth. I'm mostly interested in NVIDIA GPUs.


I don't know about memory bus width, but cudaGetDeviceProperties can return you information about the clock rate of an NVIDIA GPU.


Maybe query the card for manufacturer and model number and scrape the data from the manufacturer's website? Seriously, though, unless the driver exposes those values in an API call it'll be very difficult to determine. Maybe if you can write something to run standalone on the bare hardware you could do it, but otherwise you're going to be competing with every other process on the system for bus bandwidth and CPU time, making measurements pretty tricky.

0

精彩评论

暂无评论...
验证码 换一张
取 消