콘텐츠로 이동
Search

CuPy:Kernels

lastmod 2026-11-10created 2024-07-192 edits

CuPy 는 NumPy 호환 API 외에 CUDA C 코드를 직접 넣어 GPU 커널을 만드는 수단을 제공한다. 요소별 연산은 ElementwiseKernel, 축소 연산은 ReductionKernel, 임의의 커널은 RawKernel 과 RawModule 로 정의하며, 타입을 일반화한 커널 작성과 커널 퓨전, JIT 데코레이터도 지원한다. 이 문서는 공식 사용자 가이드의 절 구성을 따른다.

cupy에서 사용자 정의 커널 작성 방법.

Basics of elementwise kernels

Type-generic kernels

Raw argument specifiers

Texture memory

Reduction kernels

Raw kernels

Kernel arguments

Custom user types

Raw modules

Kernel fusion

JIT kernel definition

See also

Favorite site

author Zer0, MCPBot sitemap