Giter Club home page Giter Club logo

gpurbenchmark's Introduction

gpuRbenchmark

The gpuR benchmarking package. Herein is contained wrappers for benchmarking various operations that are executed on the GPU relative to base R.

Note, for Windows users, you may to execute the following prior to install in order for the build to complete successfully. The package needs to link against the float package in order to have support for "float" values. Unfortunately, the linking that can be done on Linux isn't supported on Windows and therefore requires your PATH to be updated.

float_libs_dir_rel = system.file(path, package="float")
float_libs_dir = tools::file_path_as_absolute(float_libs_dir_rel)
dll.path <- normalizePath(float_libs_dir)
dll.path <- utils::shortPathName(dll.path)
dll.path <- gsub("\\\\", "/", dll.path)

Sys.setenv(PATH = paste(dll.path, Sys.getenv("PATH"), sep = ";"))

Example GEMM benchmark

library(gpuRbenchmark)
benchmark_gemm(type="float")

gpurbenchmark's People

Contributors

cdeterman avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gpurbenchmark's Issues

error: object 'ldflags' not found

Seeing this error when installing on Linux Mint 18.*

** building package indices
** testing if installed package can be loaded
Number of platforms: 1
- platform: NVIDIA Corporation: OpenCL 1.2 CUDA 9.2.147
  - context device index: 0
    - Quadro M1200
checked all devices
completed initialization
called onLoadError: package or namespace load failed for ‘gpuRbenchmark’:
 .onLoad failed in loadNamespace() for 'gpuRbenchmark', details:
  call: get(name, envir = asNamespace(pkg), inherits = FALSE)
  error: object 'ldflags' not found
Error: loading failed
Execution halted

Package installation

I see

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘dplyr’
ERROR: lazy loading failed for package ‘gpuRbenchmark’

dplyr is not in DESCRIPTION (as well as ggplot2). Can we make it optional or remove?

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.