Repository navigation
feature: Add pseudo-GPU device compilation harness for pass verification - #550
Open
johnbowen42 wants to merge 1 commit into
Open
johnbowen42 wants to merge 1 commit into
johnbowen42 wants to merge 1 commit into
Conversation
Drive the real HIP device pipeline (clang -x hip targeting amdgcn) on machines without ROCm or a GPU. A minimal hip/hip_runtime.h stub plus -nogpuinc -nogpulib --offload-device-only lets unmodified GPU tests compile with ProteusPass loaded, so lambda kernel-arg and clobbering analysis decisions are verifiable ahead of time from the PROTEUS_DEBUG_OUTPUT pass trace. Verified against Homebrew LLVM 19 and 22: lambda_clobber_shapes reproduces all 12 expected decisions. Known quirk handled by the driver: upstream clang registers -fpass-plugin pipeline callbacks twice for HIP device compiles (ROCm clang does not), so the second ProteusPass run dies on the duplicate _jit_bitcode global after analysis completes; the script treats exactly that fatal as benign. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Drive the real HIP device pipeline (clang -x hip targeting amdgcn) on machines without ROCm or a GPU. A minimal hip/hip_runtime.h stub plus -nogpuinc -nogpulib --offload-device-only lets unmodified GPU tests compile with ProteusPass loaded, so lambda kernel-arg and clobbering analysis decisions are verifiable ahead of time from the PROTEUS_DEBUG_OUTPUT pass trace. Verified against Homebrew LLVM 19 and 22: lambda_clobber_shapes reproduces all 12 expected decisions.
Known quirk handled by the driver: upstream clang registers -fpass-plugin pipeline callbacks twice for HIP device compiles (ROCm clang does not), so the second ProteusPass run dies on the duplicate _jit_bitcode global after analysis completes; the script treats exactly that fatal as benign.