From 6f178003d7b9a50e9fcfc2a1d7a7b275240cd340 Mon Sep 17 00:00:00 2001 From: Dailiwen Date: Wed, 19 Sep 2018 10:30:09 +0800 Subject: [PATCH] Update copy_gpu.cu bug in gpu fill --- matlab/src/bits/impl/copy_gpu.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/src/bits/impl/copy_gpu.cu b/matlab/src/bits/impl/copy_gpu.cu index 204b1e95..e24f41ec 100644 --- a/matlab/src/bits/impl/copy_gpu.cu +++ b/matlab/src/bits/impl/copy_gpu.cu @@ -15,7 +15,7 @@ the terms of the BSD license (see the COPYING file). #include template __global__ void -fill_kernel (type * data, type value, size_t size) +fill_kernel (type * data, size_t size, type value) { int index = threadIdx.x + blockIdx.x * blockDim.x ; if (index < size) data[index] = value ;