Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def detect_platform():
rocm_version: ROCm version string (e.g., '7.0.1') or None
rocm_path: Path to ROCm installation or None
"""
# Check for ROCm installation
rocm_path = os.environ.get("ROCM_PATH")
# Safely get ROCM_PATH from environment variables, or use the default
rocm_path = os.environ.get("ROCM_PATH", "/opt/rocm")

# Check if ROCm is available
if rocm_path and os.path.exists(rocm_path):
Expand Down