Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#29 from carlushuang/0.15.0_1b7e38
Browse files Browse the repository at this point in the history
fix enforce workspace size, the limit should bigger than user request
  • Loading branch information
carlushuang authored Sep 25, 2018
2 parents bdd96b7 + bf87e64 commit 61a3a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/operators/conv_cudnn_op.cu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class CUDNNConvOpKernel : public framework::OpKernel<T> {
PADDLE_ENFORCE(platform::dynload::miopenConvolutionForwardGetWorkSpaceSize(
handle, cudnn_filter_desc, cudnn_input_desc, cudnn_conv_desc,
cudnn_output_desc, &workspace_size_in_bytes));
PADDLE_ENFORCE_LE(workspace_size_limit, workspace_size_in_bytes,
PADDLE_ENFORCE_LE(workspace_size_in_bytes, workspace_size_limit,
"workspace_size to be allocated exceeds the limit");
// Allocate on GPU memory
platform::CUDAPlace gpu = boost::get<platform::CUDAPlace>(ctx.GetPlace());
Expand Down

0 comments on commit 61a3a75

Please sign in to comment.