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 6003aca commit 97a8a89Copy full SHA for 97a8a89
torch/csrc/autograd/engine.cpp
@@ -1263,7 +1263,7 @@ void GraphTask::stash_current_streams() {
1263
caller_current_streams_.resize(num_gpus);
1264
if (num_gpus > 0) {
1265
for (c10::DeviceIndex idx = 0; idx < num_gpus; idx++) {
1266
-#if defined(USE_ROCM)
+#if defined(USE_ROCM) && (ROCM_VERSION < 50000)
1267
// If the build targets ROCM, stash streams for all visible devices unconditionally, to work around
1268
// https://github.com/pytorch/pytorch/issues/59750.
1269
// TODO: Remove ROCM-specific behavior when https://github.com/pytorch/pytorch/issues/59750 is fixed.
0 commit comments