forked from wine-compholio/wine-staging
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated nvcuda-CUDA_Support patchset
- Loading branch information
1 parent
1deec9d
commit 1f500db
Showing
2 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
patches/nvcuda-CUDA_Support/0017-nvcuda-Add-empty-stub-for-function-cuFuncSetAttr.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
From 15355b788c4f277db50948667703dbddfb2a6786 Mon Sep 17 00:00:00 2001 | ||
From: Alois SCHLOEGL <alois.schloegl@ist.ac.at> | ||
Date: Fri, 21 Oct 2022 14:51:56 +1100 | ||
Subject: [PATCH] nvcuda: Add empty stub for function cuFuncSetAttr | ||
|
||
--- | ||
dlls/nvcuda/nvcuda.c | 8 ++++++++ | ||
dlls/nvcuda/nvcuda.spec | 2 +- | ||
2 files changed, 9 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/dlls/nvcuda/nvcuda.c b/dlls/nvcuda/nvcuda.c | ||
index cf89fca1fab..17861083093 100644 | ||
--- a/dlls/nvcuda/nvcuda.c | ||
+++ b/dlls/nvcuda/nvcuda.c | ||
@@ -124,6 +124,7 @@ static CUresult (*pcuEventQuery)(CUevent hEvent); | ||
static CUresult (*pcuEventRecord)(CUevent hEvent, CUstream hStream); | ||
static CUresult (*pcuEventSynchronize)(CUevent hEvent); | ||
static CUresult (*pcuFuncGetAttribute)(int *pi, CUfunction_attribute attrib, CUfunction hfunc); | ||
+static CUresult (*pcuFuncSetAttribute)(CUfunction hfunc, CUfunction_attribute attrib, int value); | ||
static CUresult (*pcuFuncSetBlockShape)(CUfunction hfunc, int x, int y, int z); | ||
static CUresult (*pcuFuncSetCacheConfig)(CUfunction hfunc, CUfunc_cache config); | ||
static CUresult (*pcuFuncSetSharedMemConfig)(CUfunction hfunc, CUsharedconfig config); | ||
@@ -498,6 +499,7 @@ static BOOL load_functions(void) | ||
LOAD_FUNCPTR(cuEventRecord); | ||
LOAD_FUNCPTR(cuEventSynchronize); | ||
LOAD_FUNCPTR(cuFuncGetAttribute); | ||
+ LOAD_FUNCPTR(cuFuncSetAttribute); | ||
LOAD_FUNCPTR(cuFuncSetBlockShape); | ||
LOAD_FUNCPTR(cuFuncSetCacheConfig); | ||
LOAD_FUNCPTR(cuFuncSetSharedMemConfig); | ||
@@ -1090,6 +1092,12 @@ CUresult WINAPI wine_cuFuncGetAttribute(int *pi, CUfunction_attribute attrib, CU | ||
return pcuFuncGetAttribute(pi, attrib, hfunc); | ||
} | ||
|
||
+CUresult WINAPI wine_cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) | ||
+{ | ||
+ TRACE("(%p, %d, %d)\n", hfunc, attrib, value); | ||
+ return pcuFuncSetAttribute(hfunc, attrib, value); | ||
+} | ||
+ | ||
CUresult WINAPI wine_cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) | ||
{ | ||
TRACE("(%p, %d, %d, %d)\n", hfunc, x, y, z); | ||
diff --git a/dlls/nvcuda/nvcuda.spec b/dlls/nvcuda/nvcuda.spec | ||
index 85abf5d2e63..86bd959eee3 100644 | ||
--- a/dlls/nvcuda/nvcuda.spec | ||
+++ b/dlls/nvcuda/nvcuda.spec | ||
@@ -118,7 +118,7 @@ | ||
@ stub cuExternalMemoryGetMappedBuffer | ||
@ stub cuExternalMemoryGetMappedMipmappedArray | ||
@ stdcall cuFuncGetAttribute(ptr long ptr) wine_cuFuncGetAttribute | ||
-@ stub cuFuncSetAttribute | ||
+@ stdcall cuFuncSetAttribute(ptr long long) wine_cuFuncSetAttribute | ||
@ stdcall cuFuncSetBlockShape(ptr long long long) wine_cuFuncSetBlockShape | ||
@ stdcall cuFuncSetCacheConfig(ptr long) wine_cuFuncSetCacheConfig | ||
@ stdcall cuFuncSetSharedMemConfig(ptr long) wine_cuFuncSetSharedMemConfig | ||
-- | ||
2.37.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters