DPC++ Runtime
Runtime libraries for oneAPI DPC++
id.hpp File Reference
Include dependency graph for id.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cl::sycl::detail::RoundedRangeKernel< TransformedArgType, Dims, KernelType >
 
class  cl::sycl::detail::RoundedRangeKernelWithKH< TransformedArgType, Dims, KernelType >
 
class  cl::sycl::range< dimensions >
 Defines the iteration domain of either a single work-group in a parallel dispatch, or the overall dimensions of the dispatch. More...
 
class  cl::sycl::item< dimensions, with_offset >
 Identifies an instance of the function object executing at each point in a range. More...
 
class  cl::sycl::id< dimensions >
 A unique identifier of an item in an index space. More...
 

Namespaces

 cl
 We provide new interfaces for matrix muliply in this patch:
 
 cl::sycl
 
 cl::sycl::detail
 
 cl::sycl::ext
 
 cl::sycl::ext::oneapi
 
 cl::sycl::ext::oneapi::experimental
 

Macros

#define __SYCL_GEN_OPT(op)
 
#define __SYCL_GEN_OPT_BASE(op)
 
#define __SYCL_GEN_OPT(op)
 
#define __SYCL_GEN_OPT(op)
 
#define __SYCL_GEN_OPT(op)
 
#define __SYCL_GEN_OPT(op)
 
#define __SYCL_GEN_OPT(op)
 

Functions

template<int dimensions>
size_t cl::sycl::detail::getOffsetForId (range< dimensions > Range, id< dimensions > Id, id< dimensions > Offset)
 
id< 1 > cl::sycl::detail::getDelinearizedId (const range< 1 > &, size_t Index)
 
id< 2 > cl::sycl::detail::getDelinearizedId (const range< 2 > &Range, size_t Index)
 
id< 3 > cl::sycl::detail::getDelinearizedId (const range< 3 > &Range, size_t Index)
 
template<int Dims>
id< Dims > cl::sycl::this_id ()
 
template<int Dims>
id< Dims > cl::sycl::ext::oneapi::experimental::this_id ()
 

Macro Definition Documentation

◆ __SYCL_GEN_OPT [1/6]

#define __SYCL_GEN_OPT (   op)
Value:
template <typename T> \
EnableIfIntegral<T, bool> operator op(const T &rhs) const { \
if (this->common_array[0] != rhs) \
return false op true; \
return true op true; \
} \
template <typename T> \
friend EnableIfIntegral<T, bool> operator op(const T &lhs, \
const id<dimensions> &rhs) { \
if (lhs != rhs.common_array[0]) \
return false op true; \
return true op true; \
}

Definition at line 285 of file id.hpp.

◆ __SYCL_GEN_OPT [2/6]

#define __SYCL_GEN_OPT (   op)
Value:
template <typename T> \
friend EnableIfIntegral<T, id<dimensions>> operator op( \
const id<dimensions> &lhs, const T &rhs) { \
id<dimensions> result; \
for (int i = 0; i < dimensions; ++i) { \
result.common_array[i] = lhs.common_array[i] op rhs; \
} \
return result; \
} \
template <typename T> \
friend EnableIfIntegral<T, id<dimensions>> operator op( \
const T &lhs, const id<dimensions> &rhs) { \
id<dimensions> result; \
for (int i = 0; i < dimensions; ++i) { \
result.common_array[i] = lhs op rhs.common_array[i]; \
} \
return result; \
}

Definition at line 285 of file id.hpp.

◆ __SYCL_GEN_OPT [3/6]

#define __SYCL_GEN_OPT (   op)
Value:
friend id<dimensions> &operator op(id<dimensions> &lhs, \
const id<dimensions> &rhs) { \
for (int i = 0; i < dimensions; ++i) { \
lhs.common_array[i] op rhs.common_array[i]; \
} \
return lhs; \
} \
friend id<dimensions> &operator op(id<dimensions> &lhs, const size_t &rhs) { \
for (int i = 0; i < dimensions; ++i) { \
lhs.common_array[i] op rhs; \
} \
return lhs; \
}

Definition at line 285 of file id.hpp.

◆ __SYCL_GEN_OPT [4/6]

#define __SYCL_GEN_OPT (   op)
Value:
friend id<dimensions> operator op(const id<dimensions> &rhs) { \
id<dimensions> result; \
for (int i = 0; i < dimensions; ++i) { \
result.common_array[i] = (op rhs.common_array[i]); \
} \
return result; \
}

Definition at line 285 of file id.hpp.

◆ __SYCL_GEN_OPT [5/6]

#define __SYCL_GEN_OPT (   op)
Value:
friend id<dimensions> &operator op(id<dimensions> &rhs) { \
for (int i = 0; i < dimensions; ++i) { \
op rhs.common_array[i]; \
} \
return rhs; \
}

Definition at line 285 of file id.hpp.

◆ __SYCL_GEN_OPT [6/6]

#define __SYCL_GEN_OPT (   op)
Value:
friend id<dimensions> operator op(id<dimensions> &lhs, int) { \
id<dimensions> old_lhs; \
for (int i = 0; i < dimensions; ++i) { \
old_lhs.common_array[i] = lhs.common_array[i]; \
op lhs.common_array[i]; \
} \
return old_lhs; \
}

Definition at line 285 of file id.hpp.

◆ __SYCL_GEN_OPT_BASE

#define __SYCL_GEN_OPT_BASE (   op)
Value:
friend id<dimensions> operator op(const id<dimensions> &lhs, \
const id<dimensions> &rhs) { \
id<dimensions> result; \
for (int i = 0; i < dimensions; ++i) { \
result.common_array[i] = lhs.common_array[i] op rhs.common_array[i]; \
} \
return result; \
}

Definition at line 153 of file id.hpp.

T
__SYCL_GEN_OPT_BASE
#define __SYCL_GEN_OPT_BASE(op)
Definition: id.hpp:153