Updated nvcuda-CUDA_Support patchset

This commit is contained in:
Alistair Leslie-Hughes 2022-01-26 08:36:09 +11:00
parent d5e8d145c8
commit c87f47bcba
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From c70b2b402ac1ca3a923822ddd2128a09ce5de81a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sveinar=20S=C3=B8pler?= <cybermax@dexter.no>
Date: Mon, 24 Jan 2022 16:02:35 +0100
Subject: [PATCH] nvcuda: Make nvcuda attempt to load libcuda.so.1
libcuda.so is not available when running under steam runtime
container. Adding this will make nvcuda attempt to load
libcuda.so.1 which will be available inside the steam runtime.
---
dlls/nvcuda/nvcuda.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/nvcuda/nvcuda.c b/dlls/nvcuda/nvcuda.c
index 2cb3a0e2ecf..84da77941c6 100644
--- a/dlls/nvcuda/nvcuda.c
+++ b/dlls/nvcuda/nvcuda.c
@@ -424,7 +424,8 @@ static BOOL load_functions(void)
"/usr/local/cuda/lib/libcuda.dylib",
"/usr/local/cuda/lib/libcuda.6.0.dylib",
#else
- "libcuda.so"
+ "libcuda.so",
+ "libcuda.so.1"
#endif
};
int i;
--
2.34.1

View File

@ -51,7 +51,7 @@ usage()
# Get the upstream commit sha
upstream_commit()
{
echo "c09a5da157585d171ad896e9862db00d505e4363"
echo "513feedff77bf1474d7a8ab49d4053ef8e5181c7"
}
# Show version information
@ -2612,6 +2612,7 @@ if test "$enable_nvcuda_CUDA_Support" -eq 1; then
patch_apply nvcuda-CUDA_Support/0013-nvcuda-Update-spec-file.patch
patch_apply nvcuda-CUDA_Support/0014-nvcuda-Implement-cuDeviceGetUuid-and-cuDeviceGetLuid.patch
patch_apply nvcuda-CUDA_Support/0015-nvcuda-Expand-the-Unknown1-table.patch
patch_apply nvcuda-CUDA_Support/0016-nvcuda-Make-nvcuda-attempt-to-load-libcuda.so.1.patch
fi
# Patchset nvapi-Stub_DLL