DPC++ Runtime
Runtime libraries for oneAPI DPC++
aliases.hpp File Reference
#include <sycl/detail/cl.h>
#include <sycl/detail/common.hpp>
#include <cstddef>
#include <cstdint>
Include dependency graph for aliases.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 sycl
 ---— Error handling, matching OpenCL plugin semantics.
 
 sycl::_V1
 
 sycl::_V1::detail
 
 sycl::_V1::detail::half_impl
 

Macros

#define __SYCL_MAKE_VECTOR_ALIAS(ALIAS, TYPE, N)    using ALIAS##N = sycl::vec<TYPE, N>;
 
#define __SYCL_MAKE_VECTOR_ALIASES_FOR_ARITHMETIC_TYPES(N)
 
#define __SYCL_MAKE_VECTOR_ALIASES_FOR_OPENCL_TYPES(N)
 
#define __SYCL_MAKE_VECTOR_ALIASES_FOR_SIGNED_AND_UNSIGNED_TYPES(N)
 
#define __SYCL_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH(N)
 

Typedefs

using sycl::_V1::instead = std::uint8_t
 
using sycl::_V1::schar = signed char
 
using sycl::_V1::uchar = unsigned char
 
using sycl::_V1::ushort = unsigned short
 
using sycl::_V1::uint = unsigned int
 
using sycl::_V1::ulong = unsigned long
 
using sycl::_V1::longlong = long long
 
using sycl::_V1::ulonglong = unsigned long long
 
using sycl::_V1::half = sycl::detail::half_impl::half
 
using sycl::_V1::cl_bool = bool
 
using sycl::_V1::cl_char = std::int8_t
 
using sycl::_V1::cl_uchar = std::uint8_t
 
using sycl::_V1::cl_short = std::int16_t
 
using sycl::_V1::cl_ushort = std::uint16_t
 
using sycl::_V1::cl_int = std::int32_t
 
using sycl::_V1::cl_uint = std::uint32_t
 
using sycl::_V1::cl_long = std::int64_t
 
using sycl::_V1::cl_ulong = std::uint64_t
 
using sycl::_V1::cl_half = half
 
using sycl::_V1::cl_float = float
 
using sycl::_V1::cl_double = double
 

Macro Definition Documentation

◆ __SYCL_MAKE_VECTOR_ALIAS

#define __SYCL_MAKE_VECTOR_ALIAS (   ALIAS,
  TYPE,
 
)     using ALIAS##N = sycl::vec<TYPE, N>;

Definition at line 28 of file aliases.hpp.

◆ __SYCL_MAKE_VECTOR_ALIASES_FOR_ARITHMETIC_TYPES

#define __SYCL_MAKE_VECTOR_ALIASES_FOR_ARITHMETIC_TYPES (   N)
Value:
__SYCL_MAKE_VECTOR_ALIAS(char, char, N) \
__SYCL_MAKE_VECTOR_ALIAS(short, short, N) \
__SYCL_MAKE_VECTOR_ALIAS(int, int, N) \
__SYCL_MAKE_VECTOR_ALIAS(long, long, N) \
__SYCL_MAKE_VECTOR_ALIAS(float, float, N) \
__SYCL_MAKE_VECTOR_ALIAS(double, double, N) \
__SYCL_MAKE_VECTOR_ALIAS(half, half, N)
#define __SYCL_MAKE_VECTOR_ALIAS(ALIAS, TYPE, N)
Definition: aliases.hpp:28
sycl::detail::half_impl::half half
Definition: aliases.hpp:77

Definition at line 31 of file aliases.hpp.

◆ __SYCL_MAKE_VECTOR_ALIASES_FOR_OPENCL_TYPES

#define __SYCL_MAKE_VECTOR_ALIASES_FOR_OPENCL_TYPES (   N)
Value:
__SYCL_MAKE_VECTOR_ALIAS(cl_uchar, sycl::cl_uchar, N) \
__SYCL_MAKE_VECTOR_ALIAS(cl_short, sycl::cl_short, N) \
__SYCL_MAKE_VECTOR_ALIAS(cl_ushort, sycl::cl_ushort, N) \
__SYCL_MAKE_VECTOR_ALIAS(cl_int, sycl::cl_int, N) \
__SYCL_MAKE_VECTOR_ALIAS(cl_uint, sycl::cl_uint, N) \
__SYCL_MAKE_VECTOR_ALIAS(cl_long, sycl::cl_long, N) \
__SYCL_MAKE_VECTOR_ALIAS(cl_ulong, sycl::cl_ulong, N) \
__SYCL_MAKE_VECTOR_ALIAS(cl_float, sycl::cl_float, N) \
__SYCL_MAKE_VECTOR_ALIAS(cl_double, sycl::cl_double, N) \
__SYCL_MAKE_VECTOR_ALIAS(cl_half, sycl::cl_half, N)
std::int8_t cl_char
Definition: aliases.hpp:79
half cl_half
Definition: aliases.hpp:87
std::int16_t cl_short
Definition: aliases.hpp:81
std::uint8_t cl_uchar
Definition: aliases.hpp:80
std::int64_t cl_long
Definition: aliases.hpp:85
std::uint16_t cl_ushort
Definition: aliases.hpp:82
double cl_double
Definition: aliases.hpp:89
std::int32_t cl_int
Definition: aliases.hpp:83
std::uint32_t cl_uint
Definition: aliases.hpp:84
float cl_float
Definition: aliases.hpp:88
std::uint64_t cl_ulong
Definition: aliases.hpp:86

Definition at line 40 of file aliases.hpp.

◆ __SYCL_MAKE_VECTOR_ALIASES_FOR_SIGNED_AND_UNSIGNED_TYPES

#define __SYCL_MAKE_VECTOR_ALIASES_FOR_SIGNED_AND_UNSIGNED_TYPES (   N)
Value:
__SYCL_MAKE_VECTOR_ALIAS(schar, signed char, N) \
__SYCL_MAKE_VECTOR_ALIAS(uchar, unsigned char, N) \
__SYCL_MAKE_VECTOR_ALIAS(ushort, unsigned short, N) \
__SYCL_MAKE_VECTOR_ALIAS(uint, unsigned int, N) \
__SYCL_MAKE_VECTOR_ALIAS(ulong, unsigned long, N) \
__SYCL_MAKE_VECTOR_ALIAS(longlong, long long, N) \
__SYCL_MAKE_VECTOR_ALIAS(ulonglong, unsigned long long, N)
long long longlong
Definition: aliases.hpp:75
unsigned int uint
Definition: aliases.hpp:73
unsigned char uchar
Definition: aliases.hpp:71
unsigned short ushort
Definition: aliases.hpp:72
unsigned long long ulonglong
Definition: aliases.hpp:76
unsigned long ulong
Definition: aliases.hpp:74
signed char schar
Definition: aliases.hpp:70

Definition at line 53 of file aliases.hpp.

◆ __SYCL_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH

#define __SYCL_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH (   N)
Value:
__SYCL_MAKE_VECTOR_ALIASES_FOR_OPENCL_TYPES(N) \
__SYCL_MAKE_VECTOR_ALIASES_FOR_SIGNED_AND_UNSIGNED_TYPES(N)
#define __SYCL_MAKE_VECTOR_ALIASES_FOR_ARITHMETIC_TYPES(N)
Definition: aliases.hpp:31

Definition at line 62 of file aliases.hpp.