Skip to content

Commit

Permalink
make_pair for gcc
Browse files Browse the repository at this point in the history
Summary: Fix gcc-5 issue.

Reviewed By: an918tw, vineelpratap

Differential Revision: D15527952

fbshipit-source-id: 8ee405d2e467eee2812e1596a8f07841e21910a9
  • Loading branch information
jacobkahn authored and facebook-github-bot committed May 28, 2019
1 parent b5ee420 commit 1c0de67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flashlight/distributed/backend/cuda/DistributedBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void allReduceMultiple(
size_t totalEls{0};
for (auto& arr : arrs) {
totalEls += arr->elements();
arrPtrs.emplace_back(std::pair(DevicePtr(*arr), arr->bytes()));
arrPtrs.emplace_back(std::make_pair(DevicePtr(*arr), arr->bytes()));
}

// Make sure our coalesce buffer is large enough. Since we're initializing our
Expand Down

0 comments on commit 1c0de67

Please sign in to comment.