Skip to content

Commit 5f9cbfa

Browse files
pbelevichfacebook-github-bot
authored andcommitted
Added possible out of shared memory error message (#25730)
Summary: Fixes #5040 Pull Request resolved: #25730 Differential Revision: D17226214 Pulled By: pbelevich fbshipit-source-id: 92278272aab74e6690f14fc9597acfd1a98854b7
1 parent 4160b8c commit 5f9cbfa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

torch/csrc/DataLoader.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ static PyObject *THPModule_errorIfAnyWorkerFails(PyObject *module) {
131131
std::ostringstream oss;
132132
oss << "DataLoader worker (pid " << worker_pid << ") is killed "
133133
<< "by signal: " << strsignal(infop.si_status) << ". ";
134+
if (infop.si_status == SIGBUS) {
135+
oss << "It is possible that dataloader's workers are out of shared memory. "
136+
<< "Please try to raise your shared memory limit.";
137+
}
134138
// This is necessary. Otherwise, the runtime error will kill the other
135139
// workers, and trigger this again.
136140
pid_set->clear();

0 commit comments

Comments
 (0)