Download the PHP package php-io-extensions/cuda without Composer

On this page you can find all versions of the php package php-io-extensions/cuda. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cuda

php-cuda

PHP CUDA Built with Zephir

PHP extension for the CUDA Runtime API plus CUDA–OpenGL interop — built with Zephir, installable via PHP PIE.

cuda exposes CUDA Runtime device, memory, stream, and event APIs to PHP 8.2+ as namespaced static methods under Cuda\Cuda\Cuda, plus thin data objects (CudaDevicePtr, CudaHostPtr, CudaStream, CudaEvent, CudaGraphicsResource) that store opaque native pointers in public fd.

Cuda\Cuda\CudaGL adds in-package CUDA–GL interop (PBO/texture register/map), an embedded plasma PTX kernel (no nvcc for consumers), and minimal present helpers. Windowing stays in peer extensions (sdl3 / glfw).

This is not CudaGraphics-PHP (custom draw/particle kernels). Token constants (cudaSuccess, memcpy kinds, …) belong in a companion microscrap package, not in this extension.


Requirements

Component Minimum version Notes
PHP 8.2 ZTS and NTS builds both supported.
CUDA Toolkit 12.0+ Runtime + Driver + cuda_gl_interop.h (Jetson CUDA 13.2 OK).
OpenGL desktop GL Linked as -lGL for interop/present.
OS Linux / Jetson aarch64 + x86_64 Linux. Darwin/Windows not supported.
Compiler C11 toolchain gcc or clang.
php-dev / phpize matches PHP Required for any build path that is not PIE.
nvcc maintainers only Regenerating embedded PTX — not required for PIE installs.

Installation

Via PHP PIE (recommended)

PIE builds the committed ext/ tree with --enable-cuda. No Zephir. No nvcc.

Platform installer (Jetson / JetPack)

Manual build with Zephir (maintainers)

Verifying the install


Quick start

Examples


API surface

Class Namespace Role
Cuda Cuda\Cuda Static Runtime API (device, error, memory, stream, event)
CudaGL Cuda\Cuda CUDA–GL interop, embedded plasma launch, present helpers
CudaDevicePtr Cuda\Cuda Device allocation DTO (fd, size)
CudaHostPtr Cuda\Cuda Pinned host allocation DTO (fd, size)
CudaStream Cuda\Cuda Stream DTO (fd, flags)
CudaEvent Cuda\Cuda Event DTO (fd, flags)
CudaGraphicsResource Cuda\Cuda Interop resource DTO (fd, glBuffer, size)

fd === 0 means none / freed. Callers own allocations until cudaFree / cudaFreeHost / cudaStreamDestroy / cudaEventDestroy / CudaGL::unregister. Do not cudaFree a device pointer obtained from CudaGL::map.

IDE stubs: ide/0.7.4/Cuda/.


License

MIT © Project Saturn Studios, LLC.


All versions of cuda with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package php-io-extensions/cuda contains the following files

Loading the files please wait ...