Skip to content

Commit

Permalink
initial npu support
Browse files Browse the repository at this point in the history
  • Loading branch information
jxy-s committed Jul 3, 2024
1 parent 1a64ec0 commit 518f95b
Show file tree
Hide file tree
Showing 30 changed files with 7,252 additions and 815 deletions.
102 changes: 97 additions & 5 deletions plugins/ExtendedTools/ExtendedTools.rc
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,14 @@ BEGIN
LTEXT "Changes to settings will require a restart of System Informer.",IDC_STATIC,7,6,211,8
CONTROL "Enable Disk and Network monitoring",IDC_ENABLEETWMONITOR,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,20,130,10
CONTROL "Enable GPU monitoring",IDC_ENABLEGPUMONITOR,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,46,88,10
CONTROL "Enable Disk and Network graphs",IDC_ENABLESYSINFOGRAPHS,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,33,130,10
CONTROL "Enable GPU fahrenheit temperature",IDC_ENABLEFAHRENHEITTEMP,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,59,130,10
CONTROL "Enable FPS monitoring",IDC_ENABLEFPSMONITOR,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,72,130,10
LTEXT "Note: FPS monitoring requires either administrative privileges or the current user a member of the ""Performance Log Users"" group.",IDC_STATIC,7,91,211,23
CONTROL "Enable GPU monitoring",IDC_ENABLEGPUMONITOR,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,46,88,10
CONTROL "Enable NPU monitoring",IDC_ENABLENPUMONITOR,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,59,88,10
CONTROL "Enable GPU/NPU fahrenheit temperature",IDC_ENABLEFAHRENHEITTEMP,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,72,140,10
CONTROL "Enable FPS monitoring",IDC_ENABLEFPSMONITOR,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,85,130,10
LTEXT "Note: FPS monitoring requires either administrative privileges or the current user a member of the ""Performance Log Users"" group.",IDC_STATIC,7,104,211,23
END

IDD_WSWATCH DIALOGEX 0, 0, 325, 266
Expand Down Expand Up @@ -178,6 +179,52 @@ BEGIN
GROUPBOX "Commit memory",IDC_GROUPCOMMIT,7,175,355,53,0,WS_EX_TRANSPARENT
END

IDD_SYSINFO_NPU DIALOGEX 0, 0, 315, 186
STYLE DS_SETFONT | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "NPU"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
LTEXT "NPU",IDC_TITLE,0,0,72,21
RTEXT "NPU name",IDC_NPUNAME,83,4,232,16,SS_WORDELLIPSIS
LTEXT "Panel layout",IDC_PANEL_LAYOUT,0,146,315,39,NOT WS_VISIBLE
LTEXT "Graph layout",IDC_GRAPH_LAYOUT,0,22,315,121,NOT WS_VISIBLE
LTEXT "NPU:",IDC_NPU_L,73,0,17,8
LTEXT "Dedicated memory:",IDC_DEDICATED_L,73,5,63,8
LTEXT "Shared memory:",IDC_SHARED_L,74,11,54,8
LTEXT "Power usage:",IDC_POWER_USAGE_L,74,16,54,8
LTEXT "Temperature:",IDC_TEMPERATURE_L,74,22,54,8
LTEXT "Fan RPM:",IDC_FAN_RPM_L,74,27,54,8
END

IDD_SYSINFO_NPUPANEL DIALOGEX 0, 0, 297, 38
STYLE DS_SETFONT | DS_FIXEDSYS | DS_CONTROL | WS_CHILD | WS_SYSMENU
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
GROUPBOX "Dedicated memory",IDC_STATIC,0,0,118,35
LTEXT "Current",IDC_STATIC,8,11,26,8
LTEXT "Limit",IDC_STATIC,8,22,15,8
RTEXT "Static",IDC_ZDEDICATEDCURRENT_V,56,11,54,8,SS_ENDELLIPSIS
RTEXT "Static",IDC_ZDEDICATEDLIMIT_V,56,22,54,8,SS_ENDELLIPSIS
GROUPBOX "Shared memory",IDC_STATIC,122,0,119,35
LTEXT "Current",IDC_STATIC,130,11,26,8
LTEXT "Limit",IDC_STATIC,130,23,15,8
RTEXT "Static",IDC_ZSHAREDCURRENT_V,182,11,54,8,SS_ENDELLIPSIS
RTEXT "Static",IDC_ZSHAREDLIMIT_V,182,23,54,8,SS_ENDELLIPSIS
PUSHBUTTON "Nodes",IDC_NODES,244,4,50,14
PUSHBUTTON "Details",IDC_DETAILS,244,21,50,14
END

IDD_PROCNPU DIALOGEX 0, 0, 369, 237
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "NPU"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
GROUPBOX "NPU",IDC_GROUPNPU,7,7,355,53,0,WS_EX_TRANSPARENT
GROUPBOX "Dedicated memory",IDC_GROUPMEM,7,63,355,53,0,WS_EX_TRANSPARENT
GROUPBOX "Shared memory",IDC_GROUPSHARED,7,119,355,53,0,WS_EX_TRANSPARENT
GROUPBOX "Commit memory",IDC_GROUPCOMMIT,7,175,355,53,0,WS_EX_TRANSPARENT
END

IDD_SYSINFO_DISK DIALOGEX 0, 0, 315, 186
STYLE DS_SETFONT | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "Disk"
Expand Down Expand Up @@ -225,6 +272,14 @@ BEGIN
LTEXT "Graph layout",IDC_LAYOUT,3,3,311,177,NOT WS_VISIBLE
END

IDD_NPUNODES DIALOGEX 0, 0, 317, 183
STYLE DS_SETFONT | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "NPU Nodes"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
LTEXT "Graph layout",IDC_LAYOUT,3,3,311,177,NOT WS_VISIBLE
END

IDD_PROCDISK_PANEL DIALOGEX 0, 0, 295, 49
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_SYSMENU
FONT 8, "MS Shell Dlg", 400, 0, 0x1
Expand Down Expand Up @@ -252,6 +307,14 @@ BEGIN
CONTROL "",IDC_GPULIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_ALIGNLEFT | WS_TABSTOP,0,0,309,210
END

IDD_SYSINFO_NPUDETAILS DIALOGEX 0, 0, 309, 210
STYLE DS_SETFONT | DS_FIXEDSYS | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "NPU Adapter Details"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_NPULIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_ALIGNLEFT | WS_TABSTOP,0,0,309,210
END

IDD_PROCFRAMES DIALOGEX 0, 0, 369, 237
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "FPS"
Expand Down Expand Up @@ -473,6 +536,23 @@ BEGIN
BOTTOMMARGIN, 230
END

IDD_SYSINFO_NPU, DIALOG
BEGIN
END

IDD_SYSINFO_NPUPANEL, DIALOG
BEGIN
BOTTOMMARGIN, 36
END

IDD_PROCNPU, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 362
TOPMARGIN, 7
BOTTOMMARGIN, 230
END

IDD_SYSINFO_DISK, DIALOG
BEGIN
END
Expand All @@ -493,6 +573,14 @@ BEGIN
BOTTOMMARGIN, 180
END

IDD_NPUNODES, DIALOG
BEGIN
LEFTMARGIN, 3
RIGHTMARGIN, 314
TOPMARGIN, 3
BOTTOMMARGIN, 180
END

IDD_PROCDISK_PANEL, DIALOG
BEGIN
END
Expand All @@ -501,6 +589,10 @@ BEGIN
BEGIN
END

IDD_SYSINFO_NPUDETAILS, DIALOG
BEGIN
END

IDD_PROCFRAMES, DIALOG
BEGIN
LEFTMARGIN, 7
Expand Down
9 changes: 9 additions & 0 deletions plugins/ExtendedTools/ExtendedTools.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@
<ClCompile Include="iconext.c" />
<ClCompile Include="framemon.cpp" />
<ClCompile Include="namedpipes.c" />
<ClCompile Include="npudetails.c" />
<ClCompile Include="npumini.c" />
<ClCompile Include="npumon.c" />
<ClCompile Include="npunodes.c" />
<ClCompile Include="npuprprp.c" />
<ClCompile Include="npusys.c" />
<ClCompile Include="objmgr.c" />
<ClCompile Include="pooldb.c" />
<ClCompile Include="pooldialog.c" />
Expand Down Expand Up @@ -162,6 +168,9 @@
<ClInclude Include="gpumini.h" />
<ClInclude Include="gpumon.h" />
<ClInclude Include="gpusys.h" />
<ClInclude Include="npumini.h" />
<ClInclude Include="npumon.h" />
<ClInclude Include="npusys.h" />
<ClInclude Include="poolmon.h" />
<ClInclude Include="PresentMon\ETW\Microsoft_Windows_D3D9.h" />
<ClInclude Include="PresentMon\ETW\Microsoft_Windows_Dwm_Core.h" />
Expand Down
30 changes: 30 additions & 0 deletions plugins/ExtendedTools/ExtendedTools.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<Filter Include="Header Files\PresentMon">
<UniqueIdentifier>{5bf99148-85a6-4371-b0e1-9778bce40b6c}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files\Neural">
<UniqueIdentifier>{8b394a7d-0da6-425f-ac4d-bbdf91c80219}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="main.c">
Expand Down Expand Up @@ -156,6 +159,24 @@
<ClCompile Include="tpm.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="npudetails.c">
<Filter>Source Files\Neural</Filter>
</ClCompile>
<ClCompile Include="npumini.c">
<Filter>Source Files\Neural</Filter>
</ClCompile>
<ClCompile Include="npumon.c">
<Filter>Source Files\Neural</Filter>
</ClCompile>
<ClCompile Include="npunodes.c">
<Filter>Source Files\Neural</Filter>
</ClCompile>
<ClCompile Include="npuprprp.c">
<Filter>Source Files\Neural</Filter>
</ClCompile>
<ClCompile Include="npusys.c">
<Filter>Source Files\Neural</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="resource.h">
Expand Down Expand Up @@ -227,6 +248,15 @@
<ClInclude Include="tpm.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="npumini.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="npumon.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="npusys.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="CHANGELOG.txt" />
Expand Down
Loading

0 comments on commit 518f95b

Please sign in to comment.