aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/multi_platform_manager.h
diff options
context:
space:
mode:
authorGravatar Justin Lebar <jlebar@google.com>2018-04-17 14:26:16 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-04-17 14:28:51 -0700
commit4764bf2986e2779d5c80b5aca08d72d5c878818b (patch)
tree1f7c389ec28de120568b85670e6d364857c6d7ba /tensorflow/stream_executor/multi_platform_manager.h
parent72df3d60faa8bbf42bb3f5c7ed38887215fad037 (diff)
[StreamExecutor] Rename ::perftools::gputools -> ::stream_executor, part 1.
Step 1 of re-namespace'ing StreamExecutor into ::stream_executor. This moves everything inside of stream_executor/..., and leaves a namespace alias into ::perftools::gputools. The next steps will clean up users to use the new namespace. This is mostly a mechanical change, but it also includes a bunch of non-mechanical changes that ideally would be split out into separate patches. Unfortunately they all sort of need to be shoved in here for various reasons: - forward declarations need to be in the same namespace as the actual types, so we need to change all forward declarations of StreamExecutor types in this one patch. - Uses of these forward declarations need to be changed to the new namespace (or otherwise we need to add a namespace alias to the relevant header, but this is pretty ugly). - Various initialization code needs to live in StreamExecutor's "real" namespace, so all this needs to be changed. PiperOrigin-RevId: 193256128
Diffstat (limited to 'tensorflow/stream_executor/multi_platform_manager.h')
-rw-r--r--tensorflow/stream_executor/multi_platform_manager.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/tensorflow/stream_executor/multi_platform_manager.h b/tensorflow/stream_executor/multi_platform_manager.h
index 438653ee20..672855d5fb 100644
--- a/tensorflow/stream_executor/multi_platform_manager.h
+++ b/tensorflow/stream_executor/multi_platform_manager.h
@@ -22,8 +22,8 @@ limitations under the License.
// In your BUILD rule, add a dependency on a platform plugin that you'd like
// to use, such as:
//
-// //perftools/gputools/executor/cuda:cuda_platform
-// //perftools/gputools/executor/opencl:opencl_platform
+// //third_party/tensorflow/stream_executor/cuda:cuda_platform
+// //third_party/tensorflow/stream_executor/opencl:opencl_platform
//
// This will register platform plugins that can be discovered via this
// interface. Sample API usage:
@@ -56,10 +56,10 @@ limitations under the License.
// And similarly, for standard interfaces (BLAS, RNG, etc.) you can add
// dependencies on support libraries, e.g.:
//
-// //perftools/gputools/executor/cuda:pluton_blas_plugin
-// //perftools/gputools/executor/cuda:cudnn_plugin
-// //perftools/gputools/executor/cuda:cublas_plugin
-// //perftools/gputools/executor/cuda:curand_plugin
+// //third_party/tensorflow/stream_executor/cuda:pluton_blas_plugin
+// //third_party/tensorflow/stream_executor/cuda:cudnn_plugin
+// //third_party/tensorflow/stream_executor/cuda:cublas_plugin
+// //third_party/tensorflow/stream_executor/cuda:curand_plugin
#ifndef TENSORFLOW_STREAM_EXECUTOR_MULTI_PLATFORM_MANAGER_H_
#define TENSORFLOW_STREAM_EXECUTOR_MULTI_PLATFORM_MANAGER_H_
@@ -75,8 +75,7 @@ limitations under the License.
#include "tensorflow/stream_executor/platform/port.h"
#include "tensorflow/stream_executor/platform/thread_annotations.h"
-namespace perftools {
-namespace gputools {
+namespace stream_executor {
// Manages multiple platforms that may be present on the current machine.
class MultiPlatformManager {
@@ -181,7 +180,6 @@ class MultiPlatformManager {
SE_DISALLOW_COPY_AND_ASSIGN(MultiPlatformManager);
};
-} // namespace gputools
-} // namespace perftools
+} // namespace stream_executor
#endif // TENSORFLOW_STREAM_EXECUTOR_MULTI_PLATFORM_MANAGER_H_