aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/stream_executor_internal.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-01-27 12:01:25 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-27 12:11:21 -0800
commit5480f326da105f466d12d33333c0482b8e5a631d (patch)
tree53201de71e34ab081f8338a9babb86235b9ee5ee /tensorflow/stream_executor/stream_executor_internal.h
parent9b44cbafe53d1409e6d7d1086284109824495abf (diff)
Default impl for StreamExecutorInterface::Memset
This makes it easier to create StreamExecutors for other platforms. Change: 145821039
Diffstat (limited to 'tensorflow/stream_executor/stream_executor_internal.h')
-rw-r--r--tensorflow/stream_executor/stream_executor_internal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tensorflow/stream_executor/stream_executor_internal.h b/tensorflow/stream_executor/stream_executor_internal.h
index d6d55fd623..751ccd3d0e 100644
--- a/tensorflow/stream_executor/stream_executor_internal.h
+++ b/tensorflow/stream_executor/stream_executor_internal.h
@@ -209,8 +209,10 @@ class StreamExecutorInterface {
uint64 size) = 0;
virtual bool MemZero(Stream *stream, DeviceMemoryBase *location,
uint64 size) = 0;
- virtual bool Memset(Stream *stream, DeviceMemoryBase *location,
- uint8 pattern, uint64 size) = 0;
+ virtual bool Memset(Stream *stream, DeviceMemoryBase *location, uint8 pattern,
+ uint64 size) {
+ return false;
+ }
virtual bool Memset32(Stream *stream, DeviceMemoryBase *location,
uint32 pattern, uint64 size) = 0;
virtual bool Memcpy(Stream *stream, void *host_dst,