utilities: Utility functions for GPU/CPU Benchmarking

utilitiesR Documentation

Utility functions for GPU/CPU Benchmarking

Description

Utility functions for GPU/CPU Benchmarking

Usage

  requirements()

  createDatabase(dbfile)
  databaseResult(data,dbfile)

  installAtlas()
  installAtlas39()
  installGoto()
  installMKL()
  purgeAtlas()
  purgeAtlas39()
  purgeGoto()
  purgeMKL()

  isPackageInstalled(package)
  hasGputools()

  getBenchmarkData(host)

Arguments

data

a (one-row) dataframe containing results from a benchmark

dbfile

character string containing path and name of SQLite database file

package

character string denoting a package to test for

host

character string denoting the host system for which benchmark data is to be retrieved

Details

requirements checks for a few system requirements such platform (Unix), operating system provider (Debian or Ubuntu) and presense of key packages (gotoblas2-helper).

createDatabase creates an empty SQLite database to store benchmark results.

databaseResult stores the benchmark results in the SQLite database.

The different install* functions add the respective BLAS libraries to the system; the different purge* functions do the inverse operation and remove them.

The function hasGputools tests for presence of this CRAN package on the current machine – as a very cheap proxy to testing whether the machine in GPU-capable or not. It uses the function isPackageInstalled for this test.

The function getBenchmarkData retrieves benchmark results for a given host.


eddelbuettel/gcbd documentation built on Feb. 16, 2024, 3:09 p.m.