Skip to content

Commit

Permalink
Fix missing DetectRocm() in FindSolutionsImpl() where options = nullp…
Browse files Browse the repository at this point in the history
…tr (#2288)
  • Loading branch information
carlushuang authored Aug 2, 2023
1 parent 312bc9d commit a84ad36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/problem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ std::vector<Solution> Problem::FindSolutionsImpl(Handle& handle,
}
else
{
const auto workspace_max = conv_desc.GetWorkSpaceSize({&handle}, conv_problem);
auto tmp_ctx = ExecutionContext{&handle};
tmp_ctx.DetectRocm();
const auto workspace_max = conv_desc.GetWorkSpaceSize(tmp_ctx, conv_problem);
workspace_size = std::min(options.workspace_limit, workspace_max);
owned_workspace = workspace_size != 0 ? handle.Create(workspace_size) : nullptr;
workspace = owned_workspace.get();
Expand Down

0 comments on commit a84ad36

Please sign in to comment.