aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/tests/params_test.cc
diff options
context:
space:
mode:
authorGravatar Eli Bendersky <eliben@google.com>2017-06-12 13:01:38 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-12 13:04:57 -0700
commit8cedce4b806639c351d45a00324fcc269704f42b (patch)
tree7329e978a4ac4ac9fda92ae26eb1de3a92222477 /tensorflow/compiler/xla/tests/params_test.cc
parent01de9af282476a5c1e9b86a1d864d0a793cac0b7 (diff)
[XLA] Replace some XLA CPU compiler specific options by generic "debug options".
LLVM optimization level, extra LLVM flags and "cpu parallel" all turn into debug options on the xla proto. "cpu parallel" is combined with "backend extra options" as a map. PiperOrigin-RevId: 158751784
Diffstat (limited to 'tensorflow/compiler/xla/tests/params_test.cc')
-rw-r--r--tensorflow/compiler/xla/tests/params_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/tests/params_test.cc b/tensorflow/compiler/xla/tests/params_test.cc
index a8ee829d60..bcfe8501b3 100644
--- a/tensorflow/compiler/xla/tests/params_test.cc
+++ b/tensorflow/compiler/xla/tests/params_test.cc
@@ -25,6 +25,7 @@ limitations under the License.
#include "tensorflow/compiler/xla/client/local_client.h"
#include "tensorflow/compiler/xla/layout_util.h"
#include "tensorflow/compiler/xla/legacy_flags/cpu_compiler_flags.h"
+#include "tensorflow/compiler/xla/legacy_flags/debug_options_flags.h"
#include "tensorflow/compiler/xla/literal_util.h"
#include "tensorflow/compiler/xla/shape_util.h"
#include "tensorflow/compiler/xla/statusor.h"
@@ -342,6 +343,7 @@ XLA_TEST_F(ParamsTest, R2_2x2_TryToPassReverseLayoutToParameter) {
int main(int argc, char** argv) {
std::vector<tensorflow::Flag> flag_list;
+ xla::legacy_flags::AppendDebugOptionsFlags(&flag_list);
xla::legacy_flags::AppendCpuCompilerFlags(&flag_list);
xla::string usage = tensorflow::Flags::Usage(argv[0], flag_list);
const bool parse_result = tensorflow::Flags::Parse(&argc, argv, flag_list);