# 6.126. CUpti_PmSampling_SetConfig_Params

struct CUpti_PmSampling_SetConfig_Params

  Params for cuptiPmSamplingSetConfig.

  Public Members

  size_t structSize

    [in] Size of the data structure.

  void *pPriv

    [in] Set to NULL.

  CUpti_PmSampling_Object *pPmSamplingObject

    [in] PM sampling object.

  size_t configSize

    [in] Size of the config image.

  const uint8_t *pConfig

    [in] Config image.

  size_t hardwareBufferSize

    [in] The hardware buffer size in which raw PM sampling data will be stored. These samples will be decoded to counter data image with cuptiPmSamplingDecodeData call.

  uint64_t samplingInterval

    [in] For the trigger mode `CUPTI_PM_SAMPLING_TRIGGER_MODE_GPU_SYSCLK_INTERVAL`, sampling interval is the number of sys clock cycles. For the trigger mode `CUPTI_PM_SAMPLING_TRIGGER_MODE_GPU_TIME_INTERVAL`, sampling interval is in nanoseconds.

  CUpti_PmSampling_TriggerMode triggerMode

    [in] Trigger mode. Note: CUPTI_PM_SAMPLING_TRIGGER_MODE_GPU_TIME_INTERVAL is not supported in Turing and GA100. Supported from GA10x onwards.