diff options
author | Manjunath Kudlur <keveman@gmail.com> | 2015-11-06 16:27:58 -0800 |
---|---|---|
committer | Manjunath Kudlur <keveman@gmail.com> | 2015-11-06 16:27:58 -0800 |
commit | f41959ccb2d9d4c722fe8fc3351401d53bcf4900 (patch) | |
tree | ef0ca22cb2a5ac4bdec9d080d8e0788a53ed496d /tensorflow/core/platform/default/stream_executor_util.h |
TensorFlow: Initial commit of TensorFlow library.
TensorFlow is an open source software library for numerical computation
using data flow graphs.
Base CL: 107276108
Diffstat (limited to 'tensorflow/core/platform/default/stream_executor_util.h')
-rw-r--r-- | tensorflow/core/platform/default/stream_executor_util.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tensorflow/core/platform/default/stream_executor_util.h b/tensorflow/core/platform/default/stream_executor_util.h new file mode 100644 index 0000000000..d7fad4e233 --- /dev/null +++ b/tensorflow/core/platform/default/stream_executor_util.h @@ -0,0 +1,19 @@ +#ifndef TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_ +#define TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_ + +#include "tensorflow/stream_executor/lib/status.h" + +namespace tensorflow { + +namespace gpu = ::perftools::gputools; + +// On the open-source platform, stream_executor currently uses +// tensorflow::Status +inline Status FromStreamExecutorStatus( + const perftools::gputools::port::Status& s) { + return s; +} + +} // namespace tensorflow + +#endif // TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_ |