Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 37 - Performance State Tracking #3

Open
HerveRV opened this issue Aug 9, 2012 · 0 comments
Open

Chapter 37 - Performance State Tracking #3

HerveRV opened this issue Aug 9, 2012 · 0 comments

Comments

@HerveRV
Copy link

HerveRV commented Aug 9, 2012

Hi, (sorry for my bad english)

I'm just trying to understand Pstates by myself,
i have downloaded the lastest nvapi and adl from the officals websites

i have open the Ch37.sln, and i can't compile it !

i can't find the error strings into nvapi, with manual text saerching.
i search "NV_GPU_PERF_PSTATE_ID" too on google, and the only one answer it return is in your book.
i don't understand how compiling this source is possible, please help me !
thanks !

error log :

1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(56): error C2065: 'NV_GPU_PERF_PSTATE_ID' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(56): error C2146: syntax error : missing ';' before identifier 'currentPState'
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(56): error C2065: 'currentPState' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(57): error C2065: 'currentPState' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(57): error C3861: 'NvAPI_GPU_GetCurrentPstate': identifier not found
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(60): error C2065: 'currentPState' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(68): error C2065: 'NV_GPU_PERF_PSTATES_INFO' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(68): error C2146: syntax error : missing ';' before identifier 'PerfPstatesInfo'
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(68): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(69): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(69): error C2228: left of '.version' must have class/struct/union
1> type is ''unknown-type''
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(69): error C2065: 'NV_GPU_PERF_PSTATES_INFO_VER' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(71): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(71): error C3861: 'NvAPI_GPU_GetPstatesInfoEx': identifier not found
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(74): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(74): error C2228: left of '.numPstates' must have class/struct/union
1> type is ''unknown-type''
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(75): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(75): error C2228: left of '.numClocks' must have class/struct/union
1> type is ''unknown-type''
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(76): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(76): error C2228: left of '.numVoltages' must have class/struct/union
1> type is ''unknown-type''
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(81): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(81): error C2228: left of '.pstates' must have class/struct/union
1> type is ''unknown-type''
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(81): error C2228: left of '.pstateId' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(86): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(86): error C2228: left of '.pstates' must have class/struct/union
1> type is ''unknown-type''
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(86): error C2228: left of '.clocks' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(86): error C2228: left of '.domainId' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(87): error C2065: 'NVAPI_GPU_PUBLIC_CLOCK_GRAPHICS' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(88): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(88): error C2228: left of '.pstates' must have class/struct/union
1> type is ''unknown-type''
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(88): error C2228: left of '.clocks' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(88): error C2228: left of '.freq' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(89): error C2065: 'NVAPI_GPU_PUBLIC_CLOCK_MEMORY' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(90): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(90): error C2228: left of '.pstates' must have class/struct/union
1> type is ''unknown-type''
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(90): error C2228: left of '.clocks' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(90): error C2228: left of '.freq' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(91): error C2065: 'NVAPI_GPU_PUBLIC_CLOCK_PROCESSOR' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(92): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(92): error C2228: left of '.pstates' must have class/struct/union
1> type is ''unknown-type''
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(92): error C2228: left of '.clocks' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(92): error C2228: left of '.freq' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(97): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(97): error C2228: left of '.pstates' must have class/struct/union
1> type is ''unknown-type''
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(97): error C2228: left of '.voltages' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(97): error C2228: left of '.domainId' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(98): error C2065: 'PerfPstatesInfo' : undeclared identifier
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(98): error C2228: left of '.pstates' must have class/struct/union
1> type is ''unknown-type''
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(98): error C2228: left of '.voltages' must have class/struct/union
1>u:\programmation[ressources][livres payants]\openglinsights-openglinsightscode-bb2d6c6\chapter 37 performance state tracking\ch37\pstatenv.cpp(98): error C2228: left of '.mvolt' must have class/struct/union
1> PStateAMD.cpp
1> PState.cpp
1> Ch37Dlg.cpp
1> Ch37.cpp
1> Generating Code...
1>
1>Build FAILED.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant