Use ROCM_PATH for sdk library path (#1097)

This commit is contained in:
vedithal-amd authored and GitHub committed 2025-09-24 10:31:20 -04:00
1 parent a90f28cd5c
commit f5505b5989
2 files changed
+9 -2

No files matched your search

@@ -24,6 +24,7 @@
##############################################################################
import argparse
import os
import re
from pathlib import Path
from typing import Optional
@@ -351,7 +352,9 @@ Examples:
type=str,
dest="rocprofiler_sdk_library_path",
required=False,
default="/opt/rocm/lib/librocprofiler-sdk.so",
default=str(
Path(os.getenv("ROCM_PATH", "/opt/rocm")) / "lib/librocprofiler-sdk.so"
),
help="\t\t\tSet the path to rocprofiler SDK library.",
)
profile_group.add_argument(