Skip to content

Fixes for adding data to link#241

Merged
gmarkall merged 18 commits intoNVIDIA:mainfrom
gmarkall:fix-linking-code
May 7, 2025
Merged

Fixes for adding data to link#241
gmarkall merged 18 commits intoNVIDIA:mainfrom
gmarkall:fix-linking-code

Conversation

@gmarkall
Copy link
Contributor

@gmarkall gmarkall commented May 6, 2025

  • The kind of LTO-IR should have been based on the file extension map, not the string "ltoir".
  • The add-data() method was unimplemented for the Ctypes and CUDA Python linkers. I have left it unimplemented in the MVCLinker as the functionality is not needed immediately in this linkers, and it will eventually be removed.
  • Add a test of adding data to the link via the active code library for all kinds of linkable code.
  • Test binaries are now built for the conda package and wheel tests, because they are also used in the testsuite even when pynvjitlink is not in use.

- The kind of LTO-IR should have been based on the file extension map,
  not the string `"ltoir"`.
- The `add-data()` method was unimplemented for the Ctypes linker. I
  have left it unimplemented in the `MVCLinker` and `CudaPythonLinker`
  as the functionality is not needed immediately in these linkers, and
  they will eventually be removed.
- Add a test of adding data to the link via the active code library for
  all kinds of linkable code.
@brandon-b-miller
Copy link
Contributor

A couple of the cuda 11 jobs are failing with

RuntimeError: Failed to dlopen libnvrtc.so.12

This could be related to the fact that the wrong version of the cuda bindings is coming in somehow:

Collecting cuda-bindings~=12.8.0 (from cuda-python)

Comment on lines +195 to +203
files = (
(test_device_functions_a, cuda.Archive),
(test_device_functions_cubin, cuda.Cubin),
(test_device_functions_cu, cuda.CUSource),
(test_device_functions_fatbin, cuda.Fatbin),
(test_device_functions_o, cuda.Object),
(test_device_functions_ptx, cuda.PTXSource),
(test_device_functions_ltoir, cuda.LTOIR),
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side question, do we want to add pytest to numba-cuda?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - I haven't had time to do anything about it though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can help with that next week

gmarkall and others added 3 commits May 6, 2025 19:05
Co-authored-by: brandon-b-miller <53796099+brandon-b-miller@users.noreply.github.com>
@gmarkall gmarkall added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels May 7, 2025
@gmarkall gmarkall marked this pull request as ready for review May 7, 2025 16:12
@gmarkall gmarkall merged commit 3341280 into NVIDIA:main May 7, 2025
37 checks passed
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.

4 participants