mirror of
				https://github.com/NVIDIA/cuda-samples.git
				synced 2025-11-04 07:27:49 +08:00 
			
		
		
		
	Merge branch 'shawnz_bugs_fix_cuda_a_dev' into 'cuda_a_dev'
Bug 5196362: Update parameters of cuCtxCreate for vectorAddMMAP See merge request cuda-samples/cuda-samples!105
This commit is contained in:
		
						commit
						1627e96677
					
				@ -32,6 +32,7 @@
 | 
			
		||||
        * `matrixMulDrv`
 | 
			
		||||
        * `simpleTextureDrv`
 | 
			
		||||
        * `vectorAddDrv`
 | 
			
		||||
        * `vectorAddMMAP`
 | 
			
		||||
    * `2_Concepts_and_Techniques`
 | 
			
		||||
        * `EGLStream_CUDA_CrossGPU`
 | 
			
		||||
        * `EGLStream_CUDA_Interop`
 | 
			
		||||
 | 
			
		||||
@ -141,10 +141,11 @@ int main(int argc, char **argv)
 | 
			
		||||
 | 
			
		||||
    // Collect devices accessible by the mapping device (cuDevice) into the
 | 
			
		||||
    // backingDevices vector.
 | 
			
		||||
    vector<CUdevice> backingDevices = getBackingDevices(cuDevice);
 | 
			
		||||
    vector<CUdevice>  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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user