Halide
12.0.1
Halide compiler and libraries
|
Go to the source code of this file.
Namespaces | |
Halide | |
This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide's bounds tools to query properties of it. | |
Halide::Runtime | |
Halide::Runtime::Internal | |
Halide::Runtime::Internal::Synchronization | |
Macros | |
#define | TSAN_ANNOTATIONS 0 |
#define | LOAD_FACTOR 4 |
#define | HASH_TABLE_BITS 10 |
#define | table (*(hash_table *)table_storage) |
Variables | |
WEAK char | Halide::Runtime::Internal::Synchronization::table_storage [sizeof(hash_table)] |
#define TSAN_ANNOTATIONS 0 |
Definition at line 32 of file synchronization_common.h.
#define LOAD_FACTOR 4 |
Definition at line 461 of file synchronization_common.h.
#define HASH_TABLE_BITS 10 |
Definition at line 474 of file synchronization_common.h.
#define table (*(hash_table *)table_storage) |
Definition at line 479 of file synchronization_common.h.
WEAK void halide_mutex_lock | ( | struct halide_mutex * | mutex | ) |
A basic set of mutex and condition variable functions, which call platform specific code for mutual exclusion.
Equivalent to posix calls.
Definition at line 1131 of file synchronization_common.h.
References Halide::Runtime::Internal::Synchronization::fast_mutex::lock().
Referenced by halide_default_do_par_for(), halide_default_do_parallel_tasks(), halide_default_semaphore_release(), halide_mutex_array_lock(), halide_set_num_threads(), halide_shutdown_thread_pool(), Halide::Runtime::Internal::ScopedMutexLock::ScopedMutexLock(), Halide::Runtime::Internal::worker_thread(), and Halide::Runtime::Internal::worker_thread_already_locked().
WEAK void halide_mutex_unlock | ( | halide_mutex * | mutex | ) |
Definition at line 1137 of file synchronization_common.h.
References Halide::Runtime::Internal::Synchronization::fast_mutex::unlock().
Referenced by halide_default_do_par_for(), halide_default_do_parallel_tasks(), halide_default_semaphore_release(), halide_mutex_array_unlock(), halide_set_num_threads(), halide_shutdown_thread_pool(), Halide::Runtime::Internal::worker_thread(), Halide::Runtime::Internal::worker_thread_already_locked(), and Halide::Runtime::Internal::ScopedMutexLock::~ScopedMutexLock().
WEAK void halide_cond_broadcast | ( | struct halide_cond * | cond | ) |
Definition at line 1143 of file synchronization_common.h.
References Halide::Runtime::Internal::Synchronization::fast_cond::broadcast().
Referenced by Halide::Runtime::Internal::enqueue_work_already_locked(), halide_default_semaphore_release(), halide_shutdown_thread_pool(), and Halide::Runtime::Internal::worker_thread_already_locked().
WEAK void halide_cond_signal | ( | struct halide_cond * | cond | ) |
Definition at line 1149 of file synchronization_common.h.
References Halide::Runtime::Internal::Synchronization::fast_cond::signal().
WEAK void halide_cond_wait | ( | struct halide_cond * | cond, |
struct halide_mutex * | mutex | ||
) |
Definition at line 1155 of file synchronization_common.h.
References Halide::Runtime::Internal::Synchronization::fast_cond::wait().
Referenced by Halide::Runtime::Internal::worker_thread_already_locked().
WEAK halide_mutex_array* halide_mutex_array_create | ( | int | sz | ) |
Definition at line 1168 of file synchronization_common.h.
References halide_mutex_array::array, halide_free(), halide_malloc(), and memset().
WEAK void halide_mutex_array_destroy | ( | void * | user_context, |
void * | array | ||
) |
Definition at line 1188 of file synchronization_common.h.
References halide_mutex_array::array, halide_free(), and user_context.
WEAK int halide_mutex_array_lock | ( | struct halide_mutex_array * | array, |
int | entry | ||
) |
Definition at line 1194 of file synchronization_common.h.
References halide_mutex_array::array, and halide_mutex_lock().
WEAK int halide_mutex_array_unlock | ( | struct halide_mutex_array * | array, |
int | entry | ||
) |
Definition at line 1199 of file synchronization_common.h.
References halide_mutex_array::array, and halide_mutex_unlock().