cuda-python icon indicating copy to clipboard operation
cuda-python copied to clipboard

Remove trampoline modules from the old layout

Open leofang opened this issue 1 year ago • 1 comments

leofang avatar Oct 11 '24 21:10 leofang

Blocked by #162. (For some reason GitHub created the issues in the wrong order...)

leofang avatar Oct 11 '24 21:10 leofang

The .pth files (_cuda_bindings_redirector.{pth,py}) should also be removed.

leofang avatar May 13 '25 02:05 leofang

We probably should pull this in (ex: 12.9.1). Wheel repair (#673) reveals that there are two copies of msvcp140.dll getting copied into the wheel

...
  inflating: cuda/msvcp140-a6d8da6c43532fb4dbf620e6318b0e3c.dll
...
  inflating: cuda_bindings.libs/msvcp140-a6d8da6c43532fb4dbf620e6318b0e3c.dll
...

and the CI log has this warning:

  C:\Users\runneradmin\AppData\Local\Temp\cibw-run-1a7anrl5\cp310-win_amd64\build\venv\lib\site-packages\delvewheel\_wheel_repair.py:977: UserWarning: Namespace package cuda contains root-level extension modules cuda.cp310-win_amd64.pyd;cudart.cp310-win_amd64.pyd;ccuda.cp310-win_amd64.pyd;ccudart.cp310-win_amd64.pyd;nvrtc.cp310-win_amd64.pyd;cnvrtc.cp310-win_amd64.pyd and needs an extra copy of the vendored DLLs. To avoid duplicate DLLs, move extension modules into regular (non-namespace) packages.

leofang avatar Jun 02 '25 20:06 leofang