Skip to content

Conversation

@manocharahul
Copy link
Contributor

Motivation

  • Segfault should not occur when kernel compiled for different arch is run
  • runtime should handle this case and report error

Technical Details

#2484

Test Plan

Test Result

Submission Checklist

Copilot AI review requested due to automatic review settings January 6, 2026 21:29
@manocharahul manocharahul requested a review from a team as a code owner January 6, 2026 21:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a segfault that occurs when attempting to run a kernel compiled for a different architecture. The fix adds validation to check if the kernel pointer is null before attempting to use it, returning an appropriate error instead of crashing.

Key Changes:

  • Added null pointer check for kernel object in ihipLaunchKernel_validate
  • Returns hipErrorInvalidValue when an invalid kernel is detected

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@manocharahul manocharahul force-pushed the amd/dev/rmanocha/kernel-segfault branch from 9ca5901 to e881d19 Compare January 15, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants