![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Simple GPU memory container with RAII management. More...
#include <cstddef>#include <stdexcept>#include <vector>

Go to the source code of this file.
Classes | |
| class | pfc::gpu::GPUVector< T > |
| Simple GPU memory container (RAII) More... | |
Macros | |
| #define | PFC_GPU_CUDA_AVAILABLE 0 |
Simple GPU memory container with RAII management.
GPUVector provides a simple, RAII-style container for GPU memory that automatically manages CUDA memory allocation and deallocation. It's designed to be similar to std::vector in interface, but memory lives on the GPU.
Key features:
This header must compile on systems without CUDA (e.g., AMD systems). CUDA-specific code is guarded with #ifdef OpenPFC_ENABLE_CUDA.