DPC++ Runtime
Runtime libraries for oneAPI DPC++
range.hpp File Reference
#include <sycl/detail/array.hpp>
#include <sycl/detail/helpers.hpp>
#include <stdexcept>
#include <type_traits>
Include dependency graph for range.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sycl::_V1::id< dimensions >
 A unique identifier of an item in an index space. More...
 
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...
 

Namespaces

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

Macros

#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)
 

Macro Definition Documentation

◆ __SYCL_GEN_OPT [1/5]

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

Definition at line 198 of file range.hpp.

◆ __SYCL_GEN_OPT [2/5]

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

Definition at line 198 of file range.hpp.

◆ __SYCL_GEN_OPT [3/5]

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

Definition at line 198 of file range.hpp.

◆ __SYCL_GEN_OPT [4/5]

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

Definition at line 198 of file range.hpp.

◆ __SYCL_GEN_OPT [5/5]

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

Definition at line 198 of file range.hpp.

◆ __SYCL_GEN_OPT_BASE

#define __SYCL_GEN_OPT_BASE (   op)
Value:
friend range<dimensions> operator op(const range<dimensions> &lhs, \
const range<dimensions> &rhs) { \
range<dimensions> result(lhs); \
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 65 of file range.hpp.

__SYCL_GEN_OPT_BASE
#define __SYCL_GEN_OPT_BASE(op)
Definition: range.hpp:65