ext/cumo/narray/gen/tmpl/accum_binary_kernel.cu in cumo-0.1.0 vs ext/cumo/narray/gen/tmpl/accum_binary_kernel.cu in cumo-0.1.1
- old
+ new
@@ -50,12 +50,12 @@
}
}
void <%="cumo_#{type_name}_mulsum#{nan}_kernel_launch"%>(char *p1, char *p2, char *p3, ssize_t s1, ssize_t s2, ssize_t s3, uint64_t n)
{
- size_t gridDim = get_gridDim(n);
- size_t blockDim = get_blockDim(n);
- <%="cumo_#{type_name}_mulsum#{nan}_kernel"%><<<gridDim, blockDim>>>(p1,p2,p3,s1,s2,s3,n);
+ size_t grid_dim = cumo_get_grid_dim(n);
+ size_t block_dim = cumo_get_block_dim(n);
+ <%="cumo_#{type_name}_mulsum#{nan}_kernel"%><<<grid_dim, block_dim>>>(p1,p2,p3,s1,s2,s3,n);
}
//<% end %>
<% end %>
<% end %>