Implement interface to rocprofiler sdk (#695)

* Setting ROCPROF=rocprofiler-sdk environment variable will use rocprofiler-sdk C++ library instead of rocprofv3 python script

* Add runtime option --rocprofiler-sdk-library-path to use custom version of rocprofiler sdk library
    * Add --rocprofiler-sdk-library-path conftest option for tests

* Setup appropriate environment variables to inject rocprofiler sdk code to user command
    * Add env. vars. for counter collection and filtering
    * Add env. vars. for pc sampling

* Use python bindings to list counters supported by rocprofiler sdk

[ROCm/rocprofiler-compute commit: 5cb86e31fc]
This commit is contained in:
vedithal-amd
2025-05-13 10:48:21 -04:00
کامیت شده توسط GitHub
والد e025a04a60
کامیت 6dc3fad1c7
16فایلهای تغییر یافته به همراه424 افزوده شده و 66 حذف شده
@@ -333,6 +333,15 @@ Examples:
help="\t\t\tSet the interval of pc sampling in microsecond (DEFAULT: 1).",
)
profile_group.add_argument(
"--rocprofiler-sdk-library-path",
type=str,
dest="rocprofiler_sdk_library_path",
required=False,
default="/opt/rocm/lib/librocprofiler-sdk.so",
help="\t\t\tSet the path to rocprofiler SDK library.",
)
## Roofline Command Line Options
roofline_group.add_argument(
"--roof-only",