aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/device_options.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-01-19 12:42:03 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-19 13:04:30 -0800
commit82542b6128c30aecd51d776f2be636993f99bd6a (patch)
tree0774ac0a851b64ff00898575cb288cf286192358 /tensorflow/stream_executor/device_options.h
parentf49721aaf82b44dc420b5898536b5dce3254975b (diff)
Addition of platform-specific key-value options to StreamExecutor DeviceOptions.
Change: 144996090
Diffstat (limited to 'tensorflow/stream_executor/device_options.h')
-rw-r--r--tensorflow/stream_executor/device_options.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tensorflow/stream_executor/device_options.h b/tensorflow/stream_executor/device_options.h
index fb701790b1..b6ef800936 100644
--- a/tensorflow/stream_executor/device_options.h
+++ b/tensorflow/stream_executor/device_options.h
@@ -20,8 +20,9 @@ limitations under the License.
#ifndef TENSORFLOW_STREAM_EXECUTOR_DEVICE_OPTIONS_H_
#define TENSORFLOW_STREAM_EXECUTOR_DEVICE_OPTIONS_H_
-#include "tensorflow/stream_executor/platform/port.h"
+#include <unordered_map>
+#include "tensorflow/stream_executor/platform/port.h"
#include "tensorflow/stream_executor/platform/logging.h"
namespace perftools {
@@ -75,6 +76,10 @@ struct DeviceOptions {
return flags_ == 0 ? "none" : "kDoNotReclaimStackAllocation";
}
+ // Platform-specific device options. Expressed as key-value pairs to avoid
+ // DeviceOptions subclass proliferation.
+ std::unordered_map<string, string> non_portable_tags;
+
private:
unsigned flags_;
};