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  sycl::_V1::detail::RoundedRangeKernel< TransformedArgType, Dims, KernelType >
 
class  sycl::_V1::detail::RoundedRangeKernelWithKH< TransformedArgType, Dims, KernelType >
 
class  sycl::_V1::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  sycl::_V1::item< dimensions, with_offset >
 Identifies an instance of the function object executing at each point in a range. More...
 
class  sycl::_V1::id< dimensions >
 A unique identifier of an item in an index space. More...
 

Namespaces

 sycl
 ---— Error handling, matching OpenCL plugin semantics.
 
 sycl::_V1
 
 sycl::_V1::detail
 
 sycl::_V1::ext
 
 sycl::_V1::ext::oneapi
 
 sycl::_V1::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 sycl::_V1::detail::getOffsetForId (range< dimensions > Range, id< dimensions > Id, id< dimensions > Offset)
 
id< 1 > sycl::_V1::detail::getDelinearizedId (const range< 1 > &, size_t Index)
 
id< 2 > sycl::_V1::detail::getDelinearizedId (const range< 2 > &Range, size_t Index)
 
id< 3 > sycl::_V1::detail::getDelinearizedId (const range< 3 > &Range, size_t Index)
 
template<int Dims>
id< Dims > sycl::_V1::this_id ()
 
template<int Dims>
id< Dims > sycl::_V1::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 290 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 290 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 290 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 290 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 290 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 290 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 158 of file id.hpp.

__SYCL_GEN_OPT_BASE
#define __SYCL_GEN_OPT_BASE(op)
Definition: id.hpp:158