Skip to content

Commit

Permalink
fix a tiny issue with assertion in kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed May 23, 2014
1 parent 6672065 commit 42eaae6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion bin/cuda/cwc-bench-runtime.cu
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ extern "C" void cwc_bench_runtime(ccv_convnet_t* convnet, ccv_array_t* categoriz
printf("finished backward propagate first convolutional layer on GPU\n");
cudaEventDestroy(start);
cudaEventDestroy(stop);

for (i = 0; i < batch; i++)
{
printf("doing batch %d of %d\n", i + 1, batch);
Expand Down
4 changes: 2 additions & 2 deletions lib/cuda/cwc_convnet.cu
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,8 @@ __global__ static void _cwc_kern_convolutional_forward_propagate(const int strid
float* filter, const int filter_rows, const int filter_cols, const int count,
float* const biases)
{
assert(gridDim.x * partition * filter_per_block == out_rows * count);
assert(gridDim.y == out_cols);
assert(gridDim.x * partition * filter_per_block == out_cols * count);
assert(gridDim.y == out_rows);
assert(gridDim.z == partition);
extern __shared__ float shared[];
float* shared_block = &shared[0];
Expand Down

0 comments on commit 42eaae6

Please sign in to comment.