Skip to content

Commit

Permalink
Initialize workspaceSizeBwd
Browse files Browse the repository at this point in the history
  • Loading branch information
hjabird committed Jun 17, 2024
1 parent ac0c63e commit 9ae3a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dft/backends/mklgpu/commit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class mklgpu_commit final : public dft::detail::commit_impl<prec, dom> {

// This is called by the workspace_helper, and is not part of the user API.
virtual std::int64_t get_workspace_external_bytes_impl() override {
std::size_t workspaceSizeFwd = 0, workspaceSizeBwd;
std::size_t workspaceSizeFwd = 0, workspaceSizeBwd = 0;
handle.first->get_value(dft::config_param::WORKSPACE_BYTES, &workspaceSizeFwd);
handle.second->get_value(dft::config_param::WORKSPACE_BYTES, &workspaceSizeBwd);
return static_cast<std::int64_t>(std::max(workspaceSizeFwd, workspaceSizeFwd));
Expand Down

0 comments on commit 9ae3a61

Please sign in to comment.