Skip to content

Commit

Permalink
#2177: Remove copy of argv with unique_ptr deleter
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable committed Oct 12, 2023
1 parent abd9033 commit fdcb73f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vt/collective/collective_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,9 @@ RuntimePtrType CollectiveAnyOps<instance>::initializePreconfigured(
vtAssert(curArgv != nullptr, "vt was not preconfigured!");

auto argc = curArgv->getArgc();
auto argv = curArgv->getArgvDeepCopy().release();
auto runtime = initialize(argc, argv, is_interop, comm, appConfig);
auto argv = curArgv->getArgvDeepCopy();
auto argv_data = argv.get();
auto runtime = initialize(argc, argv_data, is_interop, comm, appConfig);

curArgv.reset();
return runtime;
Expand Down

0 comments on commit fdcb73f

Please sign in to comment.