From 7e90d361207b0a5e884ace2bd4c35dde82fc01f6 Mon Sep 17 00:00:00 2001 From: shawnz Date: Thu, 17 Apr 2025 10:53:03 +0800 Subject: [PATCH] Bug 5196362: Update parameters of cuCtxCreate for vectorAddMMAP --- CHANGELOG.md | 1 + Samples/0_Introduction/vectorAddMMAP/vectorAddMMAP.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da6bf388..35955a59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ * `matrixMulDrv` * `simpleTextureDrv` * `vectorAddDrv` + * `vectorAddMMAP` * `2_Concepts_and_Techniques` * `EGLStream_CUDA_CrossGPU` * `EGLStream_CUDA_Interop` diff --git a/Samples/0_Introduction/vectorAddMMAP/vectorAddMMAP.cpp b/Samples/0_Introduction/vectorAddMMAP/vectorAddMMAP.cpp index f0249e78..c5c28ff5 100644 --- a/Samples/0_Introduction/vectorAddMMAP/vectorAddMMAP.cpp +++ b/Samples/0_Introduction/vectorAddMMAP/vectorAddMMAP.cpp @@ -141,10 +141,11 @@ int main(int argc, char **argv) // Collect devices accessible by the mapping device (cuDevice) into the // backingDevices vector. - vector backingDevices = getBackingDevices(cuDevice); + vector backingDevices = getBackingDevices(cuDevice); + CUctxCreateParams ctxCreateParams = {}; // Create context - checkCudaErrors(cuCtxCreate(&cuContext, 0, cuDevice)); + checkCudaErrors(cuCtxCreate(&cuContext, &ctxCreateParams, 0, cuDevice)); // first search for the module path before we load the results string module_path;