I wrote a little program to display the CUDA properties of video cards and I am seeing something odd with it. There is a screenshot of it below. I have a two video cards in my system. When I call cudaGetDeviceCount it returns two devices. When I call cudeGetDeviceProperties and pass it indexes 0 and 1 it returns the same value in the luid field (locally unique identifier) for both indexes.
Can you think of any reason this might happen?
I am using Windows 10 and driver 430.53. I checked in the Nvidia Control Panel and SLI is enabled and it sees both cards. That’s why there are two device selection buttons at the top.
From a documentation perspective, it seems to be undocumented. I would suggest not using it for that reason. (For example, use uuid instead).
It seems to be an 8-byte field, you only seem to be displaying 4 bytes. And I suppose if your Titan RTX’s happen to be in TCC mode then this whole thing may be moot anyway.
Other than that, you’re welcome to file a bug. You’ll likely be asked for a complete code that reproduces your observation.
I can’t remember now why I was using the luid. Oh well. I was displaying just four bytes because the first four have been all zeros on every card I have checked. The uuid does appear to be unique so I will just change to use it. Thanks for your assistance.
FWIW, I don’t have much use for this other than to note when a card has been changed out. Our maintenance personnel don’t always follow instructions exactly so this is an effort to watch for unexpected changes. That the luid does not change is not enough of an issue for me to worry about since I have a viable alternative. The curious thing is it used to work correctly on previous versions of the driver. The value I get now from the same cards differs from the one displayed in the screenshot.
If it were me, I’m just saying I wouldn’t like to design my code based on undocumented features/functionality. I’m sure we can argue about that as well (whether it is documented, etc.), in that case I would have the same suggestion to file a bug.