Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

node-nvidia-smi

1.0.0 • Public • Published

Build Status npm npm

node-nvidia-smi

A node wrapper around nvidia-smi. It returns the output of nvidia-smi -q -x formatted as JSON.

Installing

[sudo] npm install [-g] node-nvidia-smi

Usage

Dependency

const smi = require('node-nvidia-smi');
 
smi(function (err, data) {
 
  // handle errors
  if (err) {
    console.warn(err);
    process.exit(1);
  }
 
  // display GPU information
  console.log(JSON.stringify(data, null, ' '));
});

CLI

If installed globally, a node-nvidia-smi executable is installed on your system PATH.

View example output in the wiki.

Keywords

install

npm i node-nvidia-smi

Downloadsweekly downloads

203

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability