Skip to main content

Module opencl_amd_backend

Module opencl_amd_backend 

Source
Expand description

OpenCL Backend for AMD GPU Acceleration

This module defines the data model and kernel source templates for a quantum circuit simulation backend targeting AMD GPUs via OpenCL.

§HONEST-AVAILABILITY NOTE

This build does not link any OpenCL / AMD ROCm runtime. There is no way here to enumerate real AMD devices, allocate device memory, compile a kernel, or dispatch GPU work. Consequently the construction / availability entry points (AMDOpenCLSimulator::new, benchmark_amd_opencl_backend) return an honest SimulatorError::UnsupportedOperation instead of fabricating device discovery (e.g. a hardcoded “Radeon RX 7900 XTX” with invented compute-unit / memory figures) or fabricating kernel timings.

The public type definitions and the OpenCL kernel source strings are retained: they are plain data / text and are useful to callers that have a real OpenCL toolchain available outside this build. They never claim that any silicon compiled or executed them.

Structs§

AMDOpenCLSimulator
AMD GPU-optimized quantum simulator using OpenCL.
OpenCLBuffer
OpenCL memory buffer descriptor.
OpenCLConfig
OpenCL backend configuration
OpenCLDevice
OpenCL device information
OpenCLKernel
OpenCL kernel information
OpenCLPlatform
OpenCL platform information
OpenCLStats
OpenCL performance statistics.

Enums§

KernelArg
Kernel argument types
MemoryFlags
OpenCL memory flags
OpenCLDeviceType
OpenCL device types
OptimizationLevel
OpenCL optimization levels

Functions§

benchmark_amd_opencl_backend
Benchmark the AMD OpenCL backend.