Skip to content

[Issue]: Ability to Add Events Without the Component Name Prefix e.g. cuda::: #526

@Treece-Burgess

Description

@Treece-Burgess

Issue Description

Currently in the master branch, you can take an event without the component name prefix and successfully add it to an EventSet. For example, on a machine with 1 * A100 the cuda component has the event cuda:::dram__bytes:stat=avg:device=0. Removing the component name prefix will still see us successfully add this cuda component event:

./[ICL:methane bin]$ ./papi_command_line dram__bytes:stat=avg:device=0

This utility lets you add events from the command line interface to see if they work.

Successfully added: dram__bytes:stat=avg:device=0

dram__bytes:stat=avg:device=0 : 	9 

----------------------------------

This should not be allowed for the cuda component and any component's outside of the perf_event component. As the perf_event component does have events that show in papi_native_avail that do not have a PMU or component prefix i.e. BR_MISP_EXEC.

Operating System

Rocky Linux 9.6 (Blue Onyx)

Architecture

x86_64

CPU Architecture

Intel Xeon Gold 6140

Compiler

GCC 11.5.0

PAPI Version

master

Component

all

Steps to Reproduce

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugIssues discussing bugs or PRs fixing bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions