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.
精彩评论