From c87f47bcba97b8c32cf5f2d03cd3eb1262b0612d Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Wed, 26 Jan 2022 08:36:09 +1100 Subject: [PATCH] Updated nvcuda-CUDA_Support patchset --- ...-nvcuda-attempt-to-load-libcuda.so.1.patch | 29 +++++++++++++++++++ patches/patchinstall.sh | 3 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 patches/nvcuda-CUDA_Support/0016-nvcuda-Make-nvcuda-attempt-to-load-libcuda.so.1.patch diff --git a/patches/nvcuda-CUDA_Support/0016-nvcuda-Make-nvcuda-attempt-to-load-libcuda.so.1.patch b/patches/nvcuda-CUDA_Support/0016-nvcuda-Make-nvcuda-attempt-to-load-libcuda.so.1.patch new file mode 100644 index 00000000..2e77c564 --- /dev/null +++ b/patches/nvcuda-CUDA_Support/0016-nvcuda-Make-nvcuda-attempt-to-load-libcuda.so.1.patch @@ -0,0 +1,29 @@ +From c70b2b402ac1ca3a923822ddd2128a09ce5de81a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Sveinar=20S=C3=B8pler?= +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 + diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 5e85e616..c4127b95 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -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