Skip to content

StartStressTest

Navigation: ADLX SDK ReferencesADLX InterfacesGPUIADLXGPU3

Syntax

ADLX_RESULT    StartStressTest (IADLXGPUStressTestFinishedListener* pGPUStressTestFinishedListener, adlx_uint duration)

Parameters

#DirectionNameTypeDescription
1.[in]pGPUStressTestFinishedListenerIADLXGPUStressTestFinishedListenerThe pointer to a GPU stress test complete listener.
#DirectionNameTypeDescription
---------------
2.[in]durationadlx_uintThe duration for the stress test in seconds.

Return Value

If the GPU stress test is successfully started, ADLX_OK is returned. If the GPU is busy executing another tuning related operation. ADLX_PENDING_OPERATION is returned. In this case, the StartStressTest call should be repeated. If the GPU stress test is not successfully started, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

The StartStressTest method triggers an asynchronous execution for the GPU stress test and returns immediately. When the GPU stress test finishes, ADLX calls OnGPUStressTestFinished in the GPU stress test complete listener.

Note: Once started, the GPU stress test cannot be interrupted and will run for the specified duration.

Requirements

Headerinclude “ISystem3.h”
Minimum version1.5

See Also: IADLXGPUStressTestFinishedListener, OnGPUStressTestFinished, ADLX Enums