Skip to content

Commit

Permalink
Fix the return code on the workspace API (ROCm#2460)
Browse files Browse the repository at this point in the history
  • Loading branch information
JehandadKhan authored Oct 18, 2023
1 parent 09fca66 commit ac2036d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/convolution_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,12 @@ miopenConvolutionForwardGetWorkSpaceSize(miopenHandle_t handle,
{

MIOPEN_LOG_FUNCTION(handle, wDesc, xDesc, convDesc, yDesc, workSpaceSize);
miopen::try_([&] {
return miopen::try_([&] {
auto ctx = ExecutionContext{};
auto problem = ProblemDescription{};
std::tie(ctx, problem) = MakeFwdCtxAndProblem(handle, xDesc, wDesc, convDesc, yDesc);
*workSpaceSize = miopen::deref(convDesc).GetWorkSpaceSize(ctx, problem);
});

return (miopenStatusSuccess);
}

namespace miopen {
Expand Down

0 comments on commit ac2036d

Please sign in to comment.