-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable patching linker for LTO, and test LTO-IR linkable code (#73)
#72 added support for linking LTO-IR files from memory instead of disk. However, it could not be tested because: - We had no way to generate an LTO-IR container for the test input - NVCC doesn't support emitting an LTO-IR container, only an LTO-IR wrapped in a fatbin wrapped in a host object. - The Numba patch needs to patch Numba for LTO for linking LTO-IR to work. This PR implements both of the above, with these changes: - Addition of a new test binary generator, `generate_raw_ltoir.py`. This uses NVRTC to generate an LTO-IR container. It uses the cuda-python bindings, so `cuda-python` is added to the test environments. - The fixtures had ended up with some duplication and inconsistency between `conftest.py` and other test files, so these are deduplicated, and now kept in `conftest.py`. Appropriate updates to all tests using the fixtures are made. - The `lto` kwarg is added to the `patch_numba_linker()` function. It is disabled by default, as enabling LTO will not presently work in all use cases. - Added a test for linking LTO-IR from memory.
- Loading branch information
Showing
10 changed files
with
278 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.