Halide
Halide::Runtime::Internal Namespace Reference

Namespaces

 Cuda
 
 Metal
 
 Qurt
 

Classes

struct  CpuFeatures
 
struct  device_copy
 
struct  ScopedMutexLock
 
struct  ScopedSpinLock
 
struct  work
 
struct  work_queue_t
 

Enumerations

enum  PrinterType { BasicPrinter = 0, ErrorPrinter = 1, StringStreamPrinter = 2 }
 

Functions

WEAK void copy_memory_helper (const device_copy &copy, int d, int64_t src_off, int64_t dst_off)
 
WEAK void copy_memory (const device_copy &copy, void *user_context)
 
WEAK device_copy make_buffer_copy (const halide_buffer_t *src, bool src_host, const halide_buffer_t *dst, bool dst_host)
 
WEAK device_copy make_host_to_device_copy (const halide_buffer_t *buf)
 
WEAK device_copy make_device_to_host_copy (const halide_buffer_t *buf)
 
WEAK objc_id create_autorelease_pool ()
 
WEAK void drain_autorelease_pool (objc_id pool)
 
WEAK void release_ns_object (objc_id obj)
 
WEAK objc_id wrap_string_as_ns_string (const char *string, size_t length)
 
size_t strlen (const char *string)
 
WEAK void ns_log_utf8_string (const char *string)
 
WEAK void ns_log_object (objc_id obj)
 
WEAK void halide_use_jit_module ()
 
WEAK void halide_release_jit_module ()
 
WEAK CpuFeatures halide_get_cpu_features ()
 
template<typename T >
 __attribute__ ((always_inline)) void swap(T &a
 
template<typename T , typename U >
 __attribute__ ((always_inline)) T reinterpret(const U &x)
 
WEAK __attribute__ ((always_inline)) int halide_malloc_alignment()
 
WEAK int clamp_num_threads (int desired_num_threads)
 
WEAK int default_desired_num_threads ()
 
WEAK void worker_thread_already_locked (work *owned_job)
 
WEAK void worker_thread (void *)
 

Variables

T & b
 
 a = b
 
WEAK work_queue_t work_queue
 

Enumeration Type Documentation

◆ PrinterType

Enumerator
BasicPrinter 
ErrorPrinter 
StringStreamPrinter 

Definition at line 5 of file printer.h.

Function Documentation

◆ copy_memory_helper()

◆ copy_memory()

WEAK void Halide::Runtime::Internal::copy_memory ( const device_copy copy,
void *  user_context 
)

◆ make_buffer_copy()

◆ make_host_to_device_copy()

WEAK device_copy Halide::Runtime::Internal::make_host_to_device_copy ( const halide_buffer_t buf)

Definition at line 161 of file device_buffer_utils.h.

References make_buffer_copy().

◆ make_device_to_host_copy()

WEAK device_copy Halide::Runtime::Internal::make_device_to_host_copy ( const halide_buffer_t buf)

Definition at line 165 of file device_buffer_utils.h.

References make_buffer_copy().

◆ create_autorelease_pool()

WEAK objc_id Halide::Runtime::Internal::create_autorelease_pool ( )

Definition at line 16 of file objc_support.h.

References objc_getClass(), objc_msgSend(), and sel_getUid().

◆ drain_autorelease_pool()

WEAK void Halide::Runtime::Internal::drain_autorelease_pool ( objc_id  pool)

Definition at line 23 of file objc_support.h.

References objc_msgSend(), and sel_getUid().

◆ release_ns_object()

WEAK void Halide::Runtime::Internal::release_ns_object ( objc_id  obj)

Definition at line 27 of file objc_support.h.

References objc_msgSend(), and sel_getUid().

Referenced by ns_log_object(), and ns_log_utf8_string().

◆ wrap_string_as_ns_string()

WEAK objc_id Halide::Runtime::Internal::wrap_string_as_ns_string ( const char *  string,
size_t  length 
)

Definition at line 31 of file objc_support.h.

References objc_getClass(), objc_msgSend(), sel_getUid(), and strlen().

Referenced by ns_log_object(), and ns_log_utf8_string().

◆ strlen()

size_t Halide::Runtime::Internal::strlen ( const char *  string)

◆ ns_log_utf8_string()

WEAK void Halide::Runtime::Internal::ns_log_utf8_string ( const char *  string)

Definition at line 41 of file objc_support.h.

References NSLog(), release_ns_object(), strlen(), and wrap_string_as_ns_string().

◆ ns_log_object()

WEAK void Halide::Runtime::Internal::ns_log_object ( objc_id  obj)

Definition at line 49 of file objc_support.h.

References NSLog(), release_ns_object(), and wrap_string_as_ns_string().

◆ halide_use_jit_module()

WEAK void Halide::Runtime::Internal::halide_use_jit_module ( )

◆ halide_release_jit_module()

WEAK void Halide::Runtime::Internal::halide_release_jit_module ( )

◆ halide_get_cpu_features()

WEAK CpuFeatures Halide::Runtime::Internal::halide_get_cpu_features ( )

◆ __attribute__() [1/3]

template<typename T >
Halide::Runtime::Internal::__attribute__ ( (always_inline)  ) &

◆ __attribute__() [2/3]

template<typename T , typename U >
Halide::Runtime::Internal::__attribute__ ( (always_inline)  ) const &

Definition at line 214 of file runtime_internal.h.

References __attribute__(), memcpy(), Halide::min(), and WEAK.

◆ __attribute__() [3/3]

WEAK Halide::Runtime::Internal::__attribute__ ( (always_inline)  )

Referenced by __attribute__().

◆ clamp_num_threads()

WEAK int Halide::Runtime::Internal::clamp_num_threads ( int  desired_num_threads)

Definition at line 62 of file thread_pool_common.h.

References MAX_THREADS.

Referenced by halide_default_do_par_for(), and halide_set_num_threads().

◆ default_desired_num_threads()

WEAK int Halide::Runtime::Internal::default_desired_num_threads ( )

Definition at line 71 of file thread_pool_common.h.

References atoi(), getenv(), and halide_host_cpu_count().

Referenced by halide_default_do_par_for(), and halide_set_num_threads().

◆ worker_thread_already_locked()

◆ worker_thread()

WEAK void Halide::Runtime::Internal::worker_thread ( void *  )

Variable Documentation

◆ b

◆ a

◆ work_queue

WEAK work_queue_t Halide::Runtime::Internal::work_queue