Skip to content

Commit

Permalink
gpu/cuda: fix dependency loading path
Browse files Browse the repository at this point in the history
[ upstream commit 0105d49 ]

A slash was missing in libcuda.so path for dlopen.

Signed-off-by: Elena Agostini <eagostini@nvidia.com>
  • Loading branch information
eagonv authored and kevintraynor committed Mar 8, 2022
1 parent bcfadaf commit 6662207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/cuda/cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ cuda_loader(void)
if (getenv("CUDA_PATH_L") == NULL)
snprintf(cuda_path, 1024, "%s", "libcuda.so");
else
snprintf(cuda_path, 1024, "%s%s", getenv("CUDA_PATH_L"), "libcuda.so");
snprintf(cuda_path, 1024, "%s/%s", getenv("CUDA_PATH_L"), "libcuda.so");

cudalib = dlopen(cuda_path, RTLD_LAZY);
if (cudalib == NULL) {
Expand Down

0 comments on commit 6662207

Please sign in to comment.