I folow the steps to compile the Samples of CUPTI and I obtain the next error:

Usage: ./autoRangeSample [device_num] [metric_names comma separated]
CUDA Device Number: 0
FAILED: NVPW_MetricsContext_GetMetricProperties_Begin(&getMetricPropertiesBeginParams)
FAILED: NVPW_RawMetricsConfig_BeginPassGroup(&beginPassGroupParams)
Failed to create configImage
Makefile:39: recipe for target ‘run’ failed
make: *** [run] Error 255

Can you post the driver and GPU details?
Also post the output for the command below

./autoRangeSample 0 smsp__warps_launched.avg

GPU: GeForce GTX 1060
Driver Version: 440.100
CUDA Version: 10.2

As you mentioned the GPU you have GeForce GTX 1060 which has compute capability=6.1(Pascal). For running CUPTI profiling samples (autorange/userrange) you need cc=7.0+ (Volta, Turing, Nvidia Ampere) Chips.