shanyi15-patch-2
Xin Pan 7 years ago
parent 18ac6947d0
commit ce55975bb5

@ -44,6 +44,7 @@ void InitGflags(std::vector<std::string> &argv) {
}
void InitP2P(int count) {
#ifdef PADDLE_WITH_CUDA
std::call_once(p2p_init_flag, [&]() {
for (int i = 0; i < count; ++i) {
for (int j = 0; j < count; ++j) {
@ -60,6 +61,7 @@ void InitP2P(int count) {
}
}
});
#endif
}
void InitDevices() {

Loading…
Cancel
Save