INNER CODE UNIT · Shell

emit

dockur/windows · src/display.sh:201

    function emit() {
      if (found || !in_gpu || api == "" || type == "") {
        return
      }

      split(api, version, ".")
      if (type != "PHYSICAL_DEVICE_TYPE_CPU" &&
          (version[1] > 1 || (version[1] == 1 && version[2] >= 3))) {
        print api "|" type "|" name "|" driver
        found = 1
      }
    }

    /^GPU[0-9]+:/ {
      emit()
      in_gpu = 1
      api = ""
      type = ""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…