Bug 5196362: Update parameters of cuCtxCreate for vectorAddMMAP

This commit is contained in:
shawnz 2025-04-17 10:53:03 +08:00
parent 2c0b36a967
commit 7e90d36120
2 changed files with 4 additions and 2 deletions

View File

@ -32,6 +32,7 @@
* `matrixMulDrv` * `matrixMulDrv`
* `simpleTextureDrv` * `simpleTextureDrv`
* `vectorAddDrv` * `vectorAddDrv`
* `vectorAddMMAP`
* `2_Concepts_and_Techniques` * `2_Concepts_and_Techniques`
* `EGLStream_CUDA_CrossGPU` * `EGLStream_CUDA_CrossGPU`
* `EGLStream_CUDA_Interop` * `EGLStream_CUDA_Interop`

View File

@ -142,9 +142,10 @@ int main(int argc, char **argv)
// Collect devices accessible by the mapping device (cuDevice) into the // Collect devices accessible by the mapping device (cuDevice) into the
// backingDevices vector. // backingDevices vector.
vector<CUdevice> backingDevices = getBackingDevices(cuDevice); vector<CUdevice> backingDevices = getBackingDevices(cuDevice);
CUctxCreateParams ctxCreateParams = {};
// Create context // Create context
checkCudaErrors(cuCtxCreate(&cuContext, 0, cuDevice)); checkCudaErrors(cuCtxCreate(&cuContext, &ctxCreateParams, 0, cuDevice));
// first search for the module path before we load the results // first search for the module path before we load the results
string module_path; string module_path;