#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | TTL_global(type) |
Create a typed reference in the __global address space. | |
#define | TTL_global_printf "%p" |
#define | TTL_local(type) |
Create a typed reference in the __local address space. | |
#define | TTL_local_printf "%p" |
Typedefs | |
using | TTL_dim = uint32_t |
The type used to hold the size of an object along any dimension. | |
using | TTL_offset_dim = int32_t |
The type used to hold offsets and origins. | |
#define TTL_global | ( | type | ) |
Create a typed reference in the __global address space.
Using this macro allows a global reference to be created in an implmentation indepedent way.
For example a pointer to a struct MyStruct in the global namespace.
for an unsigned int
Definition at line 44 of file TTL_cpp/opencl/TTL_types.h.
#define TTL_global_printf "%p" |
Different implementations use different types for global pointers, using TTL_global_printf allows for agnostic implementations.
Definition at line 57 of file TTL_cpp/opencl/TTL_types.h.
#define TTL_local | ( | type | ) |
Create a typed reference in the __local address space.
Using this macro allows a local reference to be created in an implmentation indepedent way.
For example a pointer to a struct MyStruct in the local namespace.
for an unsigned int
Definition at line 77 of file TTL_cpp/opencl/TTL_types.h.
#define TTL_local_printf "%p" |
Different implementations use different types for local pointers, using TTL_local_printf allows for agnostic implementations.
Definition at line 90 of file TTL_cpp/opencl/TTL_types.h.
using TTL_dim = uint32_t |
The type used to hold the size of an object along any dimension.
Definition at line 23 of file TTL_cpp/opencl/TTL_types.h.
using TTL_offset_dim = int32_t |
The type used to hold offsets and origins.
Definition at line 24 of file TTL_cpp/opencl/TTL_types.h.