message: Print a more ergonomic error message when the CPU JIT is not linked in
diff: @@ -98,10 +98,17 @@ Compiler::GetPlatformCompilers() {
  auto* factories = GetPlatformCompilerFactories();
  auto it = factories->find(platform->id());
  if (it == factories->end()) {
  + string hint;
  + if (platform->Name() == "Host") {
  + hint = " (hint: try linking in tensorflow/compiler/jit:xla_cpu_jit)";
  + } else if (platform->Name() == "CUDA") {
  + hint = " (hint: try linking in tensorflow/compiler/jit:xla_gpu_jit)";
  + }
  +
  return NotFound(
  "could not find registered compiler for platform %s -- check "
  - "target linkage",
  - platform->Name());
  + "target linkage%s",
  + platform->Name(), hint);
  }
  // And then we invoke the factory, placing the result into the mapping.
  