Download the PHP package microscrap/cuda without Composer
On this page you can find all versions of the php package microscrap/cuda. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download microscrap/cuda
More information about microscrap/cuda
Files in microscrap/cuda
Package cuda
Short Description CUDA Runtime Bindings for The PHP CUDA Extension
License MIT
Homepage https://scrapyard-io.projectsaturnstudios.com/ecosystem/microscrap/cuda/0.7.x/overview
Informations about the package cuda
microscrap/cuda
PHP helper library that wraps the cuda extension with global functions and enums. Each helper delegates to Cuda\Cuda\Cuda / Cuda\Cuda\CudaGL.
This is a 1:1 bindings package (posix / ftdi style). Extension DTOs (CudaDevicePtr, CudaHostPtr, CudaStream, CudaEvent, CudaGraphicsResource) are passed through unchanged — public fd is the opaque native pointer (0 = none).
Tubes framebuffer registration belongs in microscrap/cuda-gfx (separate). Windowing stays in sdl3 / glfw.
Highlights
- C-ish Runtime helpers matching CUDA / ext-cuda names (
cudaMalloc,cudaMemcpyHtoD, …) - CUDA–OpenGL interop helpers (
cudaGL_*) over in-packageCudaGL(embedded plasma PTX) - Backed PHP enums for error / memcpy / graphics / stream / event flags
- No exceptions in
src/— checkcudaSuccess(0) andcudaGetLastError() - Coverage + style Pest suite (CI runs without a GPU via
--ignore-platform-req=ext-cuda)
Requirements
- PHP 8.4+
- ext-cuda ^0.7.0 — install via PHP PIE:
Installation
Composer autoloads src/Helpers/cuda-runtime.php and src/Helpers/cuda-gl.php.
Usage
GPU-owned framebuffer (needs a current GL context from sdl3):
Enums
| Enum | Role |
|---|---|
Microscrap\Bindings\CUDA\Enums\CudaError |
cudaError_t |
CudaMemcpyKind |
memcpy directions (docs; ext uses dedicated HtoD/DtoH/DtoD) |
CudaGraphicsRegisterFlags |
cudaGL_registerBuffer flags |
CudaStreamFlags / CudaEventFlags |
create-with-flags tokens |
Documentation
- Production docs: https://scrapyard-io.projectsaturnstudios.com/ecosystem/microscrap/cuda/0.7.x/overview
- Native extension docs: https://scrapyard-io.projectsaturnstudios.com/ecosystem/php-io-extensions/cuda/0.7.x/overview
- Agent knowledge bundle:
.okf/(excluded from Composer dist)
License
MIT © Angel Gonzalez
All versions of cuda with dependencies
ext-cuda Version ^0.7.0