Skip to content

FAILED with CUPTI_ERROR_INVALID_METRIC_NAME #1

@Yang-xinzhe

Description

@Yang-xinzhe

Lib CUPTI failed

currently i'm working on Nvidia Xavier and my cuda version is 11.4

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Sun_Oct_23_22:16:07_PDT_2022
Cuda compilation tools, release 11.4, V11.4.315
Build cuda_11.4.r11.4/compiler.31964100_0

follow README i tried make runthen i gotmem.cu:516: error: function cuptiActivityEnable(CUPTI_ACTIVITY_KIND_KERNEL) failed with error CUPTI_ERROR_INSUFFICIENT_PRIVILEGES.

then i tried sudo make run i got

CUDA Device Number: 0
CUDA Device Name: Xavier
count,free,total,used,sm_efficiency,achieved_occupancy,ipc,issued_ipc,issue_slot_utilization,gld_requested_throughput,gst_requested_throughput,gld_throughput,gst_throughput,tex_cache_throughput,tex_fu_utilization,single_precision_fu_utilization,stall_inst_fetch,stall_exec_dependency,stall_memory_dependency,stall_other,stall_constant_memory_dependency,stall_pipe_busy,stall_memory_throttle,stall_not_selected,l2_read_transactions,l2_tex_read_throughput,l2_tex_write_throughput,l2_read_throughput,l2_write_throughput,dram_utilization,eligible_warps_per_cycle
mem.cu:397: error: function cuptiMetricGetIdFromName(device, PC[i], &metricId[i]) failed with error CUPTI_ERROR_INVALID_METRIC_NAME.
make: *** [Makefile:82: run] Error 255

I've test my CUPTI can work and here's my PATH

export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
  • ls /usr/local/cuda/lib64/libcupti*
/usr/local/cuda/lib64/libcupti.so  /usr/local/cuda/lib64/libcupti.so.11.4  /usr/local/cuda/lib64/libcupti.so.2021.2.2
  • ls /usr/local/cuda/include/cupti*
/usr/local/cuda/include/cupti_activity.h     /usr/local/cuda/include/cupti.h                  /usr/local/cuda/include/cupti_result.h
/usr/local/cuda/include/cupti_callbacks.h    /usr/local/cuda/include/cupti_metrics.h          /usr/local/cuda/include/cupti_runtime_cbid.h
/usr/local/cuda/include/cupti_driver_cbid.h  /usr/local/cuda/include/cupti_nvtx_cbid.h        /usr/local/cuda/include/cupti_target.h
/usr/local/cuda/include/cupti_events.h       /usr/local/cuda/include/cupti_profiler_target.h  /usr/local/cuda/include/cupti_version.h

How can i solve CUPTI_ERROR_INVALID_METRIC_NAME

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions