Conversation
I agree. This PR only wants the changes in driver_linux.pyx an driver_windows.pyx, and the number of lines is supporsed to be small. |
#2953 was merged. General remark: it can be really useful to have xref: cybind !<number> in the PR description. Otherwise it can be quite a bit of detective work later to match against the cybind state. (I've been there many times.) |
mdboom
left a comment
There was a problem hiding this comment.
LGTM.
This will also need a backport to the 12.9.x branch.
mdboom
left a comment
There was a problem hiding this comment.
Let's add a regression test -- if it's too hard to actually call these functions, at least confirm that the functions don't raise a FunctionNotFoundError.
Adds test_culogs_functions_are_resolved to confirm cuLogsRegisterCallback, cuLogsUnregisterCallback, cuLogsCurrent, cuLogsDumpToFile, and cuLogsDumpToMemory are resolved by cuGetProcAddress_v2 and do not raise FunctionNotFoundError, guarding against the version mismatch fixed in this PR. Addresses review feedback on NVIDIA#2978, closes NVIDIA#2979.
Adds test_culogs_functions_are_resolved to confirm cuLogsRegisterCallback, cuLogsUnregisterCallback, cuLogsCurrent, cuLogsDumpToFile, and cuLogsDumpToMemory are resolved by cuGetProcAddress_v2 and do not raise FunctionNotFoundError, guarding against the version mismatch fixed in this PR. Addresses review feedback on NVIDIA#2978, closes NVIDIA#2979.
…daVersion argument (13030) exceeds the driver version (13020)
fb16db6 to
cdecc5f
Compare
|
/ok to test cdecc5f |
I was hesitating about using internal link. Linking number is a good idea. Rebased 2953. |
A regression test has been added to guard the functionality of cuLogs* APIs. |
Added the to-be-backported label so this will be auto-cherry-picked to 12.9.x on merge. Backport PR may hit a conflict there. Header hash could be different. |
|
Summary
Closes #2979
Regenerated
cuda_bindingsdriver bindings to correctcuLogs*functions' introduced version.
Key fix
cuLogs*functions were incorrectly loaded viacuGetProcAddress_v2with version
12080(CUDA 12.8). They were introduced in CUDA 12.9,so the correct version is
12090.Affected functions:
cuLogsRegisterCallbackcuLogsUnregisterCallbackcuLogsCurrentcuLogsDumpToFilecuLogsDumpToMemoryAdditional changes
Also includes accumulated cybind generator updates since the last regeneration:
driver.pxd: added_ownerfield to Cython struct wrapper classesdriver.pyx: minor formatting cleanup (removed redundantpassstatements and blank lines in
__init__methods)cydriver.pxd: trailing newline fixFiles changed
All files are auto-generated by cybind — do not edit manually.