Orbmu2k / nvidiaProfileInspector

MIT License
3.32k stars 249 forks source link

[Feature request] Add setting support for CUDA - Sysmem Fallback Policy #166

Open levicki opened 8 months ago

levicki commented 8 months ago

@Orbmu2k Latest NVIDIA drivers (546.01 as of this writing) support new CUDA - Sysmem Fallback Policy option.

I created a setting entry which I am sharing below, if you are still maintaining the program could you please add it to the Reference.xml file and create a new release?

    <CustomSetting>
      <UserfriendlyName>CUDA - Sysmem Fallback Policy</UserfriendlyName>
      <HexSettingID>0x10ECECC9</HexSettingID>
      <Description />
      <GroupName>5 - Common</GroupName>
      <SettingValues>
        <CustomSettingValue>
          <UserfriendlyName>Driver Default</UserfriendlyName>
          <HexValue>0x00000000</HexValue>
        </CustomSettingValue>
        <CustomSettingValue>
          <UserfriendlyName>Prefer No Sysmem Fallback</UserfriendlyName>
          <HexValue>0x00000001</HexValue>
        </CustomSettingValue>
        <CustomSettingValue>
          <UserfriendlyName>Prefer Sysmem Fallback</UserfriendlyName>
          <HexValue>0x00000002</HexValue>
        </CustomSettingValue>
      </SettingValues>
      <SettingMasks />
    </CustomSetting>
Justin62628 commented 6 months ago

I would like to know how did you get the HexSettingID since this option results in 'NVAPI_SETTING_NOT_FOUND' in R545 NVAPI in driver 546.29, which means the id may need an update

levicki commented 6 months ago

@Justin62628 By comparing profile settings using NVIDIA Profile Inspector with the option turned on and off using the NVIDIA Control Panel.

levicki commented 6 months ago

@Justin62628

image

image

It's not really rocket science to reverse-engineer it.

Justin62628 commented 6 months ago

@Justin62628

image

image

It's not really rocket science to reverse-engineer it.

Thank you, this solves my issue

jtabox commented 5 months ago

@Orbmu2k Latest NVIDIA drivers (546.01 as of this writing) support new CUDA - Sysmem Fallback Policy option.

I created a setting entry which I am sharing below, if you are still maintaining the program could you please add it to the Reference.xml file and create a new release?

... snip

@levicki Since there's no reply from the authors, is there some way I can incorporate those settings to profile inspector? I want to install it but I don't wanna end up worsening Stable Diffusion performance in some way.

Edit: Nvm, I'm blind apparently and completely missed the file Reference.xml existing in the program's directory. So I guess I just append your code in it? Do you maybe have any other settings suggestions for AI/CUDA focused users?