You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix debug builds of cuda_bindings and cuda_core (#1890)
* Strip debug symbols from cuda-core Linux wheels
Add -Wl,--strip-all to extra_link_args for wheel builds on Linux,
matching the existing behavior in cuda_bindings/build_hooks.py.
Without stripping, the 0.7.0 Linux wheel is ~30 MB (103 MB extracted)
because every .so ships with debug_info. After stripping, extracted
size drops from 103 MB to ~11 MB, bringing the wheel in line with
the ~4-5 MB Windows wheels.
Closes#1881
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix debug builds of cuda_bindings and cuda_core
* Add note about Windows
* Address comments in PR
* Address comments in PR
* Show both forms of config in README
---------
Co-authored-by: Leo Fang <leof@nvidia.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: cuda_bindings/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,14 @@ Please refer to the [Installation page](https://nvidia.github.io/cuda-python/cud
10
10
11
11
This subpackage adheres to the developing practices described in the parent metapackage [CONTRIBUTING.md](https://github.com/NVIDIA/cuda-python/blob/main/CONTRIBUTING.md).
12
12
13
+
## Debugging
14
+
15
+
Pass the `pip` / `uv` configuration option `-C="debug=True"` or
16
+
`--config-settings="debug=True"` to explicitly to build debuggable binaries.
17
+
Debuggable binaries are built by default for editable builds.
18
+
19
+
Debuggable builds are not supported on Windows.
20
+
13
21
## Testing
14
22
15
23
Testing dependencies can be installed using the `[test]` optional dependency identifier. For example, `pip install -v -e .[test]`.
Copy file name to clipboardExpand all lines: cuda_core/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,14 @@ Please refer to the [Installation page](https://nvidia.github.io/cuda-python/cud
10
10
11
11
This subpackage adheres to the developing practices described in the parent metapackage [CONTRIBUTING.md](https://github.com/NVIDIA/cuda-python/blob/main/CONTRIBUTING.md).
12
12
13
+
## Debugging
14
+
15
+
Pass the `pip` / `uv` configuration option `-C="debug=True"` or
16
+
`--config-settings="debug=True"` to explicitly to build debuggable binaries.
17
+
Debuggable binaries are built by default for editable builds.
0 commit comments