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/host | |
parent | f736991fd3a7987665a6f9fcd26d464ea7f68e2b (diff) |
Add hooks for StreamExecutor module initialization ordering
Change: 145010633
Diffstat (limited to 'tensorflow/stream_executor/host')
-rw-r--r-- | tensorflow/stream_executor/host/host_platform.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/stream_executor/host/host_platform.cc b/tensorflow/stream_executor/host/host_platform.cc index 1fa4dfce84..59b4bfe5f0 100644 --- a/tensorflow/stream_executor/host/host_platform.cc +++ b/tensorflow/stream_executor/host/host_platform.cc @@ -118,3 +118,8 @@ static void InitializeHostPlatform() { REGISTER_MODULE_INITIALIZER( host_platform, perftools::gputools::host::InitializeHostPlatform()); + +DECLARE_MODULE_INITIALIZER(multi_platform_manager); +// Note that module initialization sequencing is not supported in the +// open-source project, so this will be a no-op there. +REGISTER_MODULE_INITIALIZER_SEQUENCE(host_platform, multi_platform_manager); |