mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-26 06:38:16 +08:00
Bug 5196362, 5184356, 5212196, 5214258 and 5214259: Update sameples for CUDA13.0 API changes
This commit is contained in:
@@ -195,7 +195,7 @@ static CUresult buildKernel(CUcontext *phContext, CUdevice *phDevice, CUmodule *
|
||||
// Initialize CUDA and obtain the device's compute capability.
|
||||
int major = 0, minor = 0;
|
||||
*phDevice = cudaDeviceInit(&major, &minor);
|
||||
checkCudaErrors(cuCtxCreate(phContext, 0, *phDevice));
|
||||
checkCudaErrors(cuCtxCreate(phContext, NULL, 0, *phDevice));
|
||||
|
||||
// Get the NVVM IR from file.
|
||||
size_t size = 0;
|
||||
|
||||
Reference in New Issue
Block a user