Skip to content

Commit 8402f92

Browse files
committed
Log parallelization information.
1 parent 5a65ae9 commit 8402f92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pytorch/src/TorchService.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "WireCellUtil/Persist.h"
66

77
#include <omp.h>
8+
#include <ATen/Parallel.h>
89

910
WIRECELL_FACTORY(TorchService,
1011
WireCell::Pytorch::TorchService,
@@ -30,6 +31,7 @@ Pytorch::TorchService::TorchService()
3031
log->critical("error interpreting OMP_NUM_THREADS as integer ({})", env_str);
3132
} // env var not set
3233
}
34+
log->info("TorchService parallel info:\n{}", at::get_parallel_info());
3335
}
3436

3537
Configuration Pytorch::TorchService::default_configuration() const

0 commit comments

Comments
 (0)