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:
@@ -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",
|
||||
|
||||
مرجع در شماره جدید
Block a user