Skip to content

WIP+WIP: PR #604 + use path_finder in bindings (nvJitLink, nvrtc, nvvm) #610

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

Conversation

rwgk
Copy link
Collaborator

@rwgk rwgk commented May 5, 2025

Continuation is under #614

(I deleted NVIDIA:path_finder_dev before repointing this PR, which auto-closed it.)

Copy link
Contributor

copy-pr-bot bot commented May 5, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@rwgk
Copy link
Collaborator Author

rwgk commented May 5, 2025

/ok to test 7d8ab70

Copy link

github-actions bot commented May 5, 2025

@rwgk
Copy link
Collaborator Author

rwgk commented May 5, 2025

/ok to test 44eb27e

rwgk added 8 commits May 5, 2025 13:42
The previous implementation checked result_queue.empty() before calling get(),
which introduces a classic race condition: the queue may become non-empty
immediately after the check, resulting in missed results or misleading errors.

This patch replaces the empty() check with result_queue.get(timeout=1.0),
allowing the parent process to robustly wait for results with a bounded delay.
Also switches from ctx.SimpleQueue() to ctx.Queue() for compatibility with
timeout-based get(), which SimpleQueue does not support on Python ≤3.12.

Note: The race condition was discovered by Gemini 2.5
@rwgk
Copy link
Collaborator Author

rwgk commented May 6, 2025

/ok to test ad9e994

@rwgk
Copy link
Collaborator Author

rwgk commented May 6, 2025

/ok to test edc5b33

rwgk added 3 commits May 6, 2025 01:40
…returns an incompatible `handle`. Use win32api.LoadLibraryEx() instead to ensure self-consistency.
@rwgk
Copy link
Collaborator Author

rwgk commented May 6, 2025

/ok to test f4225ed

@leofang
Copy link
Member

leofang commented May 6, 2025

@rwgk can this PR be closed now?

@rwgk rwgk deleted the branch NVIDIA:path_finder_dev May 6, 2025 17:58
@rwgk rwgk closed this May 6, 2025
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