diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-01-19 14:33:38 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-01-19 14:44:52 -0800 |
commit | a7b60a8206554270c1d066fd66242b1d90574a14 (patch) | |
tree | 9ffe4e061a8972ecdbb012dc8418a0b20e2ea283 /tensorflow/stream_executor/multi_platform_manager.cc | |
parent | f736991fd3a7987665a6f9fcd26d464ea7f68e2b (diff) |
Add hooks for StreamExecutor module initialization ordering
Change: 145010633
Diffstat (limited to 'tensorflow/stream_executor/multi_platform_manager.cc')
-rw-r--r-- | tensorflow/stream_executor/multi_platform_manager.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/multi_platform_manager.cc b/tensorflow/stream_executor/multi_platform_manager.cc index b1f25ab5d3..cc32a6beaa 100644 --- a/tensorflow/stream_executor/multi_platform_manager.cc +++ b/tensorflow/stream_executor/multi_platform_manager.cc @@ -16,6 +16,7 @@ limitations under the License. #include "tensorflow/stream_executor/multi_platform_manager.h" #include "tensorflow/stream_executor/lib/error.h" +#include "tensorflow/stream_executor/lib/initialize.h" #include "tensorflow/stream_executor/lib/str_util.h" #include "tensorflow/stream_executor/lib/stringprintf.h" @@ -77,3 +78,12 @@ namespace gputools { } // namespace gputools } // namespace perftools + +REGISTER_MODULE_INITIALIZER( + multi_platform_manager, + { + // Nothing -- this is just a module initializer + // definition to reference for sequencing + // purposes from Platform subclasses that register + // themselves with the MultiPlatformManager. + }); |