Skip to content

Commit

Permalink
#1659: lb: clear custom model when TemperedWMin is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Dec 13, 2022
1 parent ffcb97b commit 0570bd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/vt/vrt/collection/balance/temperedwmin/temperedwmin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@

namespace vt { namespace vrt { namespace collection { namespace lb {

TemperedWMin::~TemperedWMin() {
theLBManager()->setCustomLoadModel(nullptr);
}

void TemperedWMin::init(objgroup::proxy::Proxy<TemperedWMin> in_proxy) {
auto proxy_bits = in_proxy.getProxy();
auto proxy = objgroup::proxy::Proxy<TemperedLB>(proxy_bits);
Expand Down
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/temperedwmin/temperedwmin.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct TemperedWMin : TemperedLB {
TemperedWMin() { comm_aware_ = true; }
TemperedWMin(TemperedWMin const&) = delete;

virtual ~TemperedWMin() { }
virtual ~TemperedWMin();

public:
void init(objgroup::proxy::Proxy<TemperedWMin> in_proxy);
Expand Down

0 comments on commit 0570bd0

Please sign in to comment.