Skip to content

Added fix to version check issue#5

Open
Micky774 wants to merge 1 commit into
mainfrom
zain/version-fix
Open

Added fix to version check issue#5
Micky774 wants to merge 1 commit into
mainfrom
zain/version-fix

Conversation

@Micky774

Copy link
Copy Markdown
Collaborator

Motivation

Fixes an issue with version checking as part of the ROCM_PATH replacement.

Technical Details

Test Plan

Test Result

Submission Checklist

Comment thread ck_build_interceptor.py
# checker must go straight to the real compiler — don't route through
# _handle_link_step which may fail when there's no -o argument.
if len(argv) == 2 and argv[1] in ("-v", "-V", "--version", "--help"):
# In CXX role (not hipcc), CK_JIT_CXX may be hipcc captured from the

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code here is identical to run_real_compiler except using CK_JIT_CXX env, so it is better add optional argument to run_real_compiler(argv, version_check=False) that will skip env for version_check.
The problem is also not in fake rocm PATH but it is a bug in ROCm clang++: /opt/rocm/llvm/bin/clang++ -v fails w/o CK_JIT as well. It is seen with ROCm 7.2.3 but seems fixed in ROCm 7.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants