{
  "id": "enwiki-001341626441",
  "slug": "cupy",
  "title": "CuPy",
  "qid": "",
  "lead": "CuPy is an open source library for GPU-accelerated computing with Python programming language, providing support for multi-dimensional arrays, sparse matrices, and a variety of numerical algorithms implemented on top of them. CuPy shares the same API set as NumPy and SciPy, allowing it to be a drop-in replacement to run NumPy/SciPy code on GPU. CuPy supports Nvidia CUDA GPU platform, and AMD ROCm GPU platform starting in v9.0. CuPy has been initially developed as a backend of Chainer deep learning framework, and later established as an independent project in 2017. CuPy is a part of the NumPy ecosystem array libraries and is widely adopted to utilize GPU with Python, especially in high-performance computing environments such as Summit, Perlmutter, EULER, and ABCI. CuPy is a NumFOCUS sponsored project.",
  "body": "CuPy is an open source library for GPU-accelerated computing with Python programming language, providing support for multi-dimensional arrays, sparse matrices, and a variety of numerical algorithms implemented on top of them. CuPy shares the same API set as NumPy and SciPy, allowing it to be a drop-in replacement to run NumPy/SciPy code on GPU. CuPy supports Nvidia CUDA GPU platform, and AMD ROCm GPU platform starting in v9.0. CuPy has been initially developed as a backend of Chainer deep learning framework, and later established as an independent project in 2017. CuPy is a part of the NumPy ecosystem array libraries and is widely adopted to utilize GPU with Python, especially in high-performance computing environments such as Summit, Perlmutter, EULER, and ABCI. CuPy is a NumFOCUS sponsored project. >>> import cupy as cp >>> x = cp.array([1, 2, 3]) >>> x array([1, 2, 3]) >>> y = cp.arange(10) >>> y array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) >>> import cupy as cp >>> x = cp.arange(12).reshape(3, 4).astype(cp.float32) >>> x array([[ 0., 1., 2., 3.], [ 4., 5., 6., 7.], [ 8., 9., 10., 11. , dtype=float32) >>> x.sum(axis=1) array([ 6., 22., 38.], dtype=float32) >>> import cupy as cp >>> kern = cp.RawKernel(r ... extern \"C\" __global__ ... void multiply_elemwise(const float* in1, const float* in2, float* out) { ... int tid = blockDim.x * blockIdx.x + threadIdx.x; ... out[tid] = in1[tid] * in2[tid]; ... } ... , 'multiply_elemwise') >>> in1 = cp.arange(16, dtype=cp.float32).reshape(4, 4) >>> in2 = cp.arange(16, dtype=cp.float32).reshape(4, 4) >>> out = cp.zeros((4, 4), dtype=cp.float32) >>> kern((4,), (4,), (in1, in2, out)) # grid, block and arguments >>> out array([[ 0., 1., 4., 9.], [ 16., 25., 36., 49.], [ 64., 81., 100., 121.], [144., 169., 196., 225. , dtype=float32)",
  "categories": [
    "23230146",
    "23528935",
    "23603337",
    "24153109",
    "25126254",
    "25257581",
    "26220375",
    "31503861",
    "35755158",
    "37390180",
    "44038514",
    "82546460"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1341626441",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1772595035.0,
  "claims": [
    {
      "id": 33580554,
      "subject_qid": "",
      "subject_slug": "cupy",
      "predicate": "date of establishment",
      "object_text": "2017",
      "object_num": 20170000.0,
      "object_unit": null,
      "polarity": 1,
      "qualifier": "",
      "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1341626441",
      "source_name": "Wikipedia",
      "source_tier": 3,
      "retrieved_at": 1792536346.5335977,
      "confidence": 0.95,
      "article_slug": "cupy",
      "span_start": 93,
      "span_end": 139
    }
  ],
  "contradictions": [],
  "confidence": 0.95,
  "csl": {
    "id": "enwiki-001341626441",
    "type": "webpage",
    "title": "CuPy",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/cupy",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001341626441",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1341626441",
    "note": "Immutable snapshot enwiki-001341626441"
  }
}