Code Monkey home page Code Monkey logo

gcp-gpu-zones's Introduction

GCP GPU Query tool

Introduction

This repo contains a query tool to get information about GCP GPU's, specifically which availability zones contain which GPU models. This info is not available from any known programmatic source, query, api, or command-line tool (as of when this was written, circa Fall 2022). The GPU zone information is available from a public Google http document, as a formatted text table. This tool converts the document table into a data structure, filters it if requested, and prints it out as a text table, or json.

The tool is implemented as a Node.js module, using the npm html-table-to-json library module to extract the table data and convert it to json:

https://www.npmjs.com/package/html-table-to-json

This has been tested on macOS & Windows (using GitForWindows gitbash).

Prerequisites

Scripts, Files

  • gpuzones.sh - Wrapper script to launch
  • index.js - Main Node.js script module

Setup

Run the following to install Node.js libraries

npm install

Run

Simply open a terminal in this directory, and execute the bash script:

./gpuzones.sh --help ./gpuzones.sh T4 ./gpuzones.sh K80 -o json

gcp-gpu-zones's People

Watchers

Jeremy Yabrow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.