mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #542] Add printf buffer flush delay to EP_DEVICE_ASSERT #625
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepEP#625
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepEP/pull/542
Author: @yurekami
Created: 12/25/2025
Status: 🔄 Open
Base:
main← Head:fix-device-assert-trap📝 Commits (1)
5ff7a56Add printf buffer flush delay to EP_DEVICE_ASSERT📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
csrc/kernels/exception.cuh(+4 -0)📄 Description
Summary
EP_DEVICE_ASSERTas was added totrap()in PR #539Problem
While PR #539 fixed the
trap()function to delay before aborting,EP_DEVICE_ASSERTwas still using rawasm("trap;")without any delay. This meant assertion failures in device code could still lose their printf output.Solution
Added the same delay loop using
NUM_TRAP_FLUSH_ITERATIONSand__nanosleep(NUM_WAIT_NANOSECONDS)before the trap instruction inEP_DEVICE_ASSERT.Changes
csrc/kernels/exception.cuh- Added flush delay toEP_DEVICE_ASSERTmacroTest plan
Related to #480
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.