function classify_job_to_node()

in src/BuildHistoryDisplay.js [114:152]


function classify_job_to_node(j) {
  if (j === "short-perf-test-gpu") {
    return "linux-gpu";
  } else if (j === "doc-push") {
    return "linux-cpu";
  } else if (/-win/.test(j)) {
    if (/-test/.test(j) && /-cuda/.test(j)) {
      return "win-gpu";
    } else {
      return "win-cpu";
    }
  } else if (/-macos/.test(j)) {
    return "osx";
  } else if (
    /-linux/.test(j) ||
    /-ubuntu/.test(j) ||
    /-centos/.test(j) ||
    /-xenial/.test(j)
  ) {
    if (/cuda/.test(j)) {
      if (/-multigpu-test/.test(j)) {
        return "linux-multigpu";
      } else if (/-test/.test(j)) {
        return "linux-gpu";
      } else {
        return "linux-cpu";
      }
    } else if (/-rocm/.test(j)) {
      if (/-test/.test(j)) {
        return "rocm";
      } else {
        return "linux-bigcpu";
      }
    } else {
      return "linux-cpu";
    }
  }
  return "unknown";
}