Open3D (C++ API)  0.19.0
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
UnaryEWSYCL.cpp File Reference

(bba9247 (Tue Jul 28 21:42:19 2026 -0700))

#include <cmath>
#include <cstring>
#include <type_traits>
#include "open3d/core/BlockCopyDispatch.h"
#include "open3d/core/Dispatch.h"
#include "open3d/core/Dtype.h"
#include "open3d/core/Indexer.h"
#include "open3d/core/MemoryManager.h"
#include "open3d/core/SYCLContext.h"
#include "open3d/core/SizeVector.h"
#include "open3d/core/Tensor.h"
#include "open3d/core/kernel/UnaryEW.h"
#include "open3d/utility/Logging.h"

Namespaces

namespace  open3d
 
namespace  open3d::core
 
namespace  open3d::core::kernel
 

Macros

#define SYCL_FLOAT_CHECK(Method, sycl_fn, non_float)
 
#define SYCL_MATH_UNARY(Method, sycl_fn)
 

Functions

void open3d::core::kernel::CopySYCL (const Tensor &src, Tensor &dst)
 
void open3d::core::kernel::UnaryEWSYCL (const Tensor &src, Tensor &dst, UnaryEWOpCode op_code)
 

Macro Definition Documentation

◆ SYCL_FLOAT_CHECK

#define SYCL_FLOAT_CHECK (   Method,
  sycl_fn,
  non_float 
)
Value:
static inline bool Method(T val) { \
if constexpr (std::is_floating_point_v<T>) { \
return sycl_fn(val); \
} \
return non_float; \
}

◆ SYCL_MATH_UNARY

#define SYCL_MATH_UNARY (   Method,
  sycl_fn 
)
Value:
static inline T Method(T val) { \
if constexpr (std::is_same_v<T, double>) { \
return sycl_fn(val); \
} else { \
return static_cast<T>(sycl_fn(static_cast<float>(val))); \
} \
}

Variable Documentation

◆ indexer

Indexer indexer
protected