okapies / cupy-benchmark

CuPy Benchmark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CuPy Benchmark

Benchmarking CuPy with Airspeed Velocity.

Requirements

You need to install asv benchmark framework.

pip install asv

Usage

Alternatively you can use Docker.

NumPy Benchmark

benchmarks/numpy directory contains benchmark scripts forked from NumPy 1.14.2, with the following modifications:

  • Replace import numpy as np with import cupy as np.
  • Add @sync decorator to each benchmark classes.

Some other tiny modifications (remove unsupported dtypes etc.) are also applied to fill the gap between NumPy and CuPy.

Benchmarks for features implemented in NumPy but not in CuPy are left intentionally. It is an expected behavior to see such error (e.g., AttributeError: module 'cupy' has no attribute 'tril') during benchmark.

About

CuPy Benchmark

License:MIT License


Languages

Language:Python 99.5%Language:Dockerfile 0.5%