It is currently April 26th, 2024, 5:07 pm

Trying to identify secondary Radeon PCU

Get help with creating, editing & fixing problems with skins
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Trying to identify secondary Radeon PCU

Post by CodeCode »

I have this code (forgot who provided it here in the forums).

I have the first CPU which seems to report correctly, but I am having issues with this second skin:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
BackgroundMargins=0,0,35,35

[MetaData]
Author=Morbane
Information=Utilises UsageMonitor Plugin

;==============================================================================

[GPUProcessMemory2]
Measure=Plugin
Plugin=UsageMonitor
Category=GPU Process Memory
Counter=Dedicated Usage
Index=3
MinValue=0
MaxValue=4831838208

[CalcGPUMemory2]
Measure=Calc
Formula=(GPUProcessMemory2)/1073741824
MinValue=0
MaxValue=8

[CalcGPUMemory2Inv]
Measure=Calc
Formula=(GPUProcessMemory2)/1073741824
InvertMeasure=1
MinValue=0
MaxValue=8

;==============================================================================

[getVRAM0000QW]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0002
RegValue=HardwareInformation.qwMemorySize

[getVRAM0001QW]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0002
RegValue=HardwareInformation.qwMemorySize

[CheckProviderNameQW]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0002
RegValue=ProviderName
IfMatch=Microsoft
IfMatchAction=[!SetOption calcVRAMQW Formula "(getVRAM0001QW)/1073741824"]
IfNotMatchAction=[!SetOption calcVRAMQW Formula "(getVRAM0000QW)/1073741824"]
IfMatchMode=1

[getVRAM0000DW]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0002
RegValue=HardwareInformation.MemorySize

[getVRAM0001DW]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0002
RegValue=HardwareInformation.MemorySize

[CheckProviderNameDW]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0002
RegValue=ProviderName
IfMatch=Microsoft
IfMatchAction=[!SetOption calcVRAMDW Formula "(getVRAM0001DW)/1073741824"]
IfNotMatchAction=[!SetOption calcVRAMDW Formula "(getVRAM0000DW)/1073741824"]
IfMatchMode=1

[calcVRAMQW]
Measure=Calc

[calcVRAMDW]
Measure=Calc

[calcVRAM]
Measure=Calc
Formula=(calcVRAMQW)+(calcVRAMDW)
IfCondition=calcVRAM < 3
IfTrueAction=[!SetOption finalcalcVRAM Formula "(calcVRAMDW)"]
IfFalseAction=[!SetOption finalcalcVRAM Formula "(calcVRAMQW)"]

[finalcalcVRAM]
Measure=Calc

;==============================================================================

[GPU1RamUsed]
MeasureName=CalcGPUMemory2
Meter=ROUNDLINE
X=134
Y=133
W=70
H=70
StartAngle=-1.5458897
RotationAngle=6.188
LineColor=#UsedR#
LineLength=88
LineStart=100
Solid=1
AntiAlias=10

[GPU1RamFree]
MeasureName=CalcGPUMemory2Inv
Meter=ROUNDLINE
X=r
Y=r
W=70
H=70
StartAngle=4.6825758
RotationAngle=-6.188
LineColor=#FreeL#
LineLength=88
LineStart=100
Solid=1
AntiAlias=10

[MeterText1]
Meter=String
Text=GPU 2 RAM
StringEffect=Border
FontEffectColor=0,0,0,255
Fontsize=18
FontFace=#GlobalFont#
FontColor=#TextColor1#
AntiAlias=1
StringAlign=CenterCenter
x=169
y=141
DynamicVariables=1

[MeterGPU1]
Meter=String
MeasureName=CalcGPUMemory2
FontSize=18
FontColor=#GlobalFontColor#
FontFace=#GlobalFont#
StringStyle=normal
AntiAlias=1
Text="%1 GB Used"
StringEffect=Border
FontEffectColor=0,0,0,255
AutoScale=0
NumOfDecimals=1
y=30r
StringAlign=CenterCenter
x=r
DynamicVariables=1

[Modulo]
Meter=String
MeasureName=finalcalcVRAM
FontSize=18
FontColor=#TextColor1#
FontFace=#GlobalFont#
StringEffect=Border
FontEffectColor=0,0,0,255
StringStyle=normal
AntiAlias=1
Text=OF %1 GB
AutoScale=0
NumOfDecimals=1
StringEffect=Border
FontEffectColor=0,0,0,255
y=30r
StringAlign=CenterCenter
x=r
DynamicVariables=1
DecodeCharacterReference=1
The H_KEY_LOCAL_MACHINE address is certainly correct, but my usage of that might be incorrect.
The total RAM of the gpu is certainly reporting properly, just the usage seems out of tune with what is really happening.
ANY Help Is Appreciated.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
NoWay_To_HeaVeN
Posts: 42
Joined: December 19th, 2011, 12:28 pm
Location: FR

Re: Trying to identify secondary Radeon PCU

Post by NoWay_To_HeaVeN »

Hello,
i'm using GPU usage graph from Tensystem (eonity)
First GPU index is "0"
Second GPU index is "1"
as i see, your GPU index is set on 3 ?
Windows 10 Pro 64-bit (build 19042) / AMD Ryzen 9 3900X / RAM 16 Go / GTX960-4Go X 2
Rainmeter :4.4.0.3412 beta 64-bit (Dec 28 2020)
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Trying to identify secondary Radeon PCU

Post by CodeCode »

Hey, I had it set on one, but i read in some specs under the regedit that the second AMD was sequentially numbered 3, and that a removed gpu is still holding position 2. But it is really possible i misinterpreted that information.

I put it back to 1, but the readout still seems low as both gpus are running 3 1920x1080 monitors each, so in my head i thought they should look more equal in used gpu memory. Again I could be wrong.

Other wise the gpu 2 is reading correctly the total gpu ram total (8GB).
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.