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

[cmake] Fix target onnxruntime_providers_cuda installation path #11136

Conversation

JackBoosY
Copy link
Contributor

@JackBoosY JackBoosY commented Apr 7, 2022

Description: Describe your changes.
The target onnxruntime_providers_cuda should always be built as dynamic and be used with dynamic load.
So the installation path should be CMAKE_INSTALL_BINDIR instead of CMAKE_INSTALL_LIBDIR.

Fix that.

Motivation and Context

  • Why is this change required? What problem does it solve?
  • If it fixes an open issue, please link to the issue here.

@JackBoosY
Copy link
Contributor Author

cc @snnn

@@ -502,7 +502,7 @@ if (onnxruntime_USE_CUDA)

install(TARGETS onnxruntime_providers_cuda
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_BINDIR}
Copy link
Member

Choose a reason for hiding this comment

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

Does it mean on Linux it will be installed to /usr/local/bin instead of /usr/local/lib ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I can add some code, wait for a while.

@WilliamTambellini
Copy link
Contributor

RFC

@JackBoosY
Copy link
Contributor Author

Ah this PR is too old, I can close this now.

@JackBoosY JackBoosY closed this May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants