For NVIDIA graphics cards, you can have two working as one (SLI). For a .NET desktop application, I need to be able to check that SLI is enabled. Is this possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That should be possible.
According to the nVidia docs, you can query this via NVCPL.DLL (liked to documentation).
The call to be used is
NvCplGetDataInt()(page 67), with the argumentNVCPL_API_NUMBER_OF_SLI_GPUSorNVCPL_API_SLI_MULTI_GPU_RENDERING_MODEyou should obtain the information required.In oder to access this information, you’ll need P/Invoke. If it is OK to statistically link
NVCPL.DLLyou just have to create the correct import (static external method) and you’re fine. Otherwise, you can also choose theLoadLibraryandGetEntryPointway and use theMarshalclass to create an instance of a delegate (declared with the correct arguments) which represents the function to be called.Edit:
The following snippet may get you started (I don’t have a nVidia card though, so that’s completely untested and on your own risk 😉 ):