-
Notifications
You must be signed in to change notification settings - Fork 161
Fix batch pdlp and python api support #893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
fc7aa04
tmp
Kh4ster 1614bc1
fix
Kh4ster 4f33531
fix
Kh4ster e0a530e
workaround for thrust reverse iterator build error
tmckayus e330718
remove compile file
Kh4ster dce6d4f
fix
Kh4ster 9c03faf
final cleanup
Kh4ster 6c2fe35
addtional cleanup
Kh4ster eb60c98
Merge branch 'main' into fix_batch_pdlp
Kh4ster a43dc0c
address PR comments, add tests, update doc
Kh4ster c8b8b74
format
Kh4ster b1be5bb
format
Kh4ster fe31e7e
Merge branch 'main' into fix_batch_pdlp
Kh4ster d89af96
style
Kh4ster c7e3e22
put back changes in restart
Kh4ster File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cudaPeekAtLastError()is placed aftercudaStreamSynchronize()— it is redundant and should precede the sync.RAFT_CUDA_TRY(cudaStreamSynchronize(...))already surfaces both launch-configuration errors (via the sticky error bit) and kernel execution errors. ThecudaPeekAtLastError()call that follows can never observe a new error not already caught by the sync. To properly detect kernel launch errors (e.g., invalid grid dimensions) before blocking,cudaPeekAtLastError()must come immediately after the kernel launch.🛠️ Proposed fix
kernel_compute_fixed_error<f_t><<<grid_size, block_size, 0, stream_view_>>>( make_span(step_size_strategy_.get_norm_squared_delta_primal()), make_span(step_size_strategy_.get_norm_squared_delta_dual()), make_span(primal_weight_), make_span(step_size_), make_span(step_size_strategy_.get_interaction()), make_span(restart_strategy_.fixed_point_error_)); + RAFT_CUDA_TRY(cudaPeekAtLastError()); RAFT_CUDA_TRY(cudaStreamSynchronize( stream_view_)); // To make sure all the data is written from device to host - RAFT_CUDA_TRY(cudaPeekAtLastError());🤖 Prompt for AI Agents