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

Set version when dlopen() cuda and cufile #127

Merged
merged 1 commit into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/include/kvikio/shim/cuda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class cudaAPI {
private:
cudaAPI()
{
void* lib = load_library("libcuda.so");
void* lib = load_library("libcuda.so.1");
// Notice, the API version loaded must match the version used downstream. That is,
// if a project uses the `_v2` CUDA Driver API or the newest Runtime API, the symbols
// loaded should also be the `_v2` symbols. Thus, we use KVIKIO_STRINGIFY() to get
Expand Down
4 changes: 2 additions & 2 deletions cpp/include/kvikio/shim/cufile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class cuFileAPI {
private:
cuFileAPI()
{
void* lib = load_library("libcufile.so");
void* lib = load_library("libcufile.so.1");
get_symbol(HandleRegister, lib, KVIKIO_STRINGIFY(cuFileHandleRegister));
get_symbol(HandleDeregister, lib, KVIKIO_STRINGIFY(cuFileHandleDeregister));
get_symbol(Read, lib, KVIKIO_STRINGIFY(cuFileRead));
Expand Down Expand Up @@ -80,7 +80,7 @@ class cuFileAPI {
/**
* @brief Check if the cuFile library is available
*
* Notice, this doesn't check if the runtime environment supported by cuFile.
* Notice, this doesn't check if the runtime environment supports cuFile.
*
* @return The boolean answer
*/
Expand Down