Skip to content

Don't skip debug tests when LTO enabled by default#311

Merged
kkraus14 merged 1 commit intoNVIDIA:mainfrom
gmarkall:no-lto-debug-skip
Jun 27, 2025
Merged

Don't skip debug tests when LTO enabled by default#311
kkraus14 merged 1 commit intoNVIDIA:mainfrom
gmarkall:no-lto-debug-skip

Conversation

@gmarkall
Copy link
Contributor

These used to be skipped when LTO was enabled because it was unconditionally enabled, even for kernels where debug=True. Now if debug=True LTO is disabled, so it is not a problem to run the debug tests even when LTO is enabled.

This fixes something of a regression in our test coverage, where these tests were run in fewer settings due to LTO being enabled by default.

@copy-pr-bot
Copy link

copy-pr-bot bot commented Jun 27, 2025

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

Contributors can view more details about this message here.

@gmarkall gmarkall added the 2 - In Progress Currently a work in progress label Jun 27, 2025
@gmarkall
Copy link
Contributor Author

/ok to test

@gmarkall gmarkall added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Jun 27, 2025
These used to be skipped when LTO was enabled because it was
unconditionally enabled, even for kernels where `debug=True`. Now if
`debug=True` LTO is disabled, so it is not a problem to run the debug
tests even when LTO is enabled.

This fixes something of a regression in our test coverage, where these
tests were run in fewer settings due to LTO being enabled by default.
@gmarkall gmarkall force-pushed the no-lto-debug-skip branch from be4692b to 816ff5c Compare June 27, 2025 15:58
@gmarkall
Copy link
Contributor Author

/ok to test

@kkraus14 kkraus14 merged commit c31c55e into NVIDIA:main Jun 27, 2025
39 checks passed
gmarkall added a commit to gmarkall/numba-cuda that referenced this pull request Jul 2, 2025
- Updates for recent API changes (NVIDIA#313)
- Fix lineinfo generation when compile_internal used (NVIDIA#271) (NVIDIA#287)
- Build docs with NVIDIA Sphinx theme (NVIDIA#312)
- Don't skip debug tests when LTO enabled by default (NVIDIA#311)
- Use `cuda.bindings` and `cuda.core` for `Linker` (NVIDIA#133)
- Enable LTO by default when pynvjitlink is available (NVIDIA#310)
@gmarkall gmarkall mentioned this pull request Jul 2, 2025
gmarkall added a commit that referenced this pull request Jul 2, 2025
- Updates for recent API changes (#313)
- Fix lineinfo generation when compile_internal used (#271) (#287)
- Build docs with NVIDIA Sphinx theme (#312)
- Don't skip debug tests when LTO enabled by default (#311)
- Use `cuda.bindings` and `cuda.core` for `Linker` (#133)
- Enable LTO by default when pynvjitlink is available (#310)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants