DPC++ Runtime
Runtime libraries for oneAPI DPC++
range.hpp File Reference
#include <sycl/detail/array.hpp>
#include <sycl/detail/helpers.hpp>
#include <array>
#include <stddef.h>
#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::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
 
 sycl::_V1
 
 sycl::_V1::detail
 

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)
 

Functions

std::array< size_t, 3 > sycl::_V1::detail::rangeToArray (const range< 3 > &r)
 
std::array< size_t, 3 > sycl::_V1::detail::rangeToArray (const range< 2 > &r)
 
std::array< size_t, 3 > sycl::_V1::detail::rangeToArray (const range< 1 > &r)
 

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; \
}
class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(local_accessor) local_accessor class __SYCL_EBO __SYCL_SPECIAL_CLASS Dimensions
Definition: accessor.hpp:3235
#define __SYCL_GEN_OPT_BASE(op)
Definition: range.hpp:71

Definition at line 204 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 204 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 204 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 204 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 204 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 71 of file range.hpp.