Skip to content

Commit 3d7baf8

Browse files
authored
Incorrect variable passed in cuLaunchAndSync (#58)
Incorrect variable passed, looks like copy/paste error
1 parent a41082c commit 3d7baf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

batch.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CUresult cuDeviceGetAttributes(int* retVal, CUdevice_attribute* attrs, int n, CU
2222
CUresult cuLaunchAndSync(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) {
2323
CUresult ret;
2424

25-
ret = cuLaunchKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimY, sharedMemBytes, hStream, kernelParams, extra);
25+
ret = cuLaunchKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra);
2626
if (ret != CUDA_SUCCESS) {
2727
return ret;
2828
}
@@ -154,4 +154,4 @@ void process(CUcontext ctx, uintptr_t* args, CUresult* retVal, int count){
154154
// }
155155
// }
156156
// return ret;
157-
// }
157+
// }

0 commit comments

Comments
 (0)