diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-01-30 16:45:24 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-01-30 17:08:26 -0800 |
commit | 6116e4b850ee68de9c4c318a2a860148e1f31dda (patch) | |
tree | 89b86cddae9a1778afb5dd6782e92d33fc15c5b4 /tensorflow/stream_executor/device_options.h | |
parent | 66d8b006d5607a523fa60e0a58db31316b06943e (diff) |
Use map for platform-specific SE device options
Some versions of nvcc still in common use cannot handle some common definitions
of std::unordered_map, so use std::map instead.
Change: 146057241
Diffstat (limited to 'tensorflow/stream_executor/device_options.h')
-rw-r--r-- | tensorflow/stream_executor/device_options.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/stream_executor/device_options.h b/tensorflow/stream_executor/device_options.h index b6ef800936..169325e7d1 100644 --- a/tensorflow/stream_executor/device_options.h +++ b/tensorflow/stream_executor/device_options.h @@ -20,7 +20,7 @@ limitations under the License. #ifndef TENSORFLOW_STREAM_EXECUTOR_DEVICE_OPTIONS_H_ #define TENSORFLOW_STREAM_EXECUTOR_DEVICE_OPTIONS_H_ -#include <unordered_map> +#include <map> #include "tensorflow/stream_executor/platform/port.h" #include "tensorflow/stream_executor/platform/logging.h" @@ -78,7 +78,7 @@ struct DeviceOptions { // Platform-specific device options. Expressed as key-value pairs to avoid // DeviceOptions subclass proliferation. - std::unordered_map<string, string> non_portable_tags; + std::map<string, string> non_portable_tags; private: unsigned flags_; |