DPC++ Runtime
Runtime libraries for oneAPI DPC++
_pi_mem::mem_ Union Reference

A PI Memory object represents either plain memory allocations ("Buffers" in OpenCL) or typed allocations ("Images" in OpenCL). More...

#include <cuda/pi_cuda.hpp>

Collaboration diagram for _pi_mem::mem_:

Classes

struct  buffer_mem_
 
struct  surface_mem_
 

Public Attributes

struct _pi_mem::mem_::buffer_mem_ buffer_mem_
 
struct _pi_mem::mem_::surface_mem_ surface_mem_
 

Detailed Description

A PI Memory object represents either plain memory allocations ("Buffers" in OpenCL) or typed allocations ("Images" in OpenCL).

In CUDA their API handlers are different. Whereas "Buffers" are allocated as pointer-like structs, "Images" are stored in Textures or Surfaces This union allows implementation to use either from the same handler.

In HIP their API handlers are different. Whereas "Buffers" are allocated as pointer-like structs, "Images" are stored in Textures or Surfaces This union allows implementation to use either from the same handler.

Definition at line 239 of file pi_cuda.hpp.

Member Data Documentation

◆ buffer_mem_

◆ surface_mem_


The documentation for this union was generated from the following files: