DivaGL detection, Ada Lovelace "support"

This commit is contained in:
nastys
2024-03-26 00:25:30 +01:00
parent 360305357b
commit 2c10f27ab0
7 changed files with 164 additions and 106 deletions
+5 -2
View File
@@ -34,9 +34,9 @@ namespace GPUModel
// note that the used GL context may differ
std::string getGpuName()
{
// detected model can be overridden -- 0: Kepler, 1: Maxwell, 2: Turing, 3: Ampere
// detected model can be overridden -- 0: Kepler, 1: Maxwell, 2: Turing, 3: Ampere, 4: Ada Lovelace
int nGPUModel = GetPrivateProfileIntW(L"gpu", L"model", -1, CONFIG_FILE);
if (nGPUModel >= 0 && nGPUModel <= 3)
if (nGPUModel >= 0 && nGPUModel <= 4)
{
std::string arch;
switch (nGPUModel)
@@ -53,6 +53,9 @@ namespace GPUModel
case 3:
arch = "GA000";
break;
case 4:
arch = "AD000";
break;
}
printf("[GPUModel] GPU Model override: %s\n", arch.c_str());