Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary linking of CUDA Runtime library #798

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

matthewkotila
Copy link
Contributor

@matthewkotila matthewkotila commented Oct 24, 2024

The Triton C++ client libraries do not actually use symbols in the CUDA Runtime library (libcudart.so).

So there's no need to target_link_libraries() to CUDA::cudart.

All they needed was access to #include <cuda_runtime_api.h> (which was implicitly being included by doing target_link_libraries()).

So I removed the target_link_libraries ()s and added target_include_directories()s.

@matthewkotila matthewkotila marked this pull request as ready for review October 24, 2024 16:43
Copy link
Contributor

@dyastremsky dyastremsky left a comment

Choose a reason for hiding this comment

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

Great work!

If there are a lot of common calls between the GRPC and HTTP sections, it might be worthwhile to eventually refactor them out into a shared function/section. Beyond the scope of this PR though.

@matthewkotila matthewkotila merged commit 51a5e91 into main Oct 24, 2024
3 checks passed
@matthewkotila matthewkotila deleted the matthewkotila-cuda-dynamic-loading branch October 24, 2024 22:20
fpetrini15 added a commit that referenced this pull request Oct 25, 2024
matthewkotila added a commit that referenced this pull request Oct 25, 2024
fpetrini15 added a commit that referenced this pull request Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants