We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f3c1b9 commit 21ee152Copy full SHA for 21ee152
src/MPI/ibverbs.cpp
@@ -289,7 +289,11 @@ void IBVerbs :: stageQPs( size_t maxMsgs )
289
290
struct ibv_qp * const ibv_new_qp_p = ibv_create_qp( m_pd.get(), &attr );
291
292
- m_stagedQps[i].reset( ibv_new_qp_p, ibv_destroy_qp );
+ if( ibv_new_qp_p == NULL ) {
293
+ m_stagedQps[i].reset();
294
+ } else {
295
+ m_stagedQps[i].reset( ibv_new_qp_p, ibv_destroy_qp );
296
+ }
297
if (!m_stagedQps[i]) {
298
LOG( 1, "Could not create Infiniband Queue pair number " << i );
299
throw std::bad_alloc();
0 commit comments