Halide
12.0.1
Halide compiler and libraries
|
#include <gpu_context_common.h>
Public Member Functions | |
HALIDE_MUST_USE_RESULT bool | insert (const CachedCompilation &entry) |
HALIDE_MUST_USE_RESULT bool | find_internal (ContextT context, uint32_t id, ModuleStateT *&module_state, int increment) |
HALIDE_MUST_USE_RESULT bool | lookup (ContextT context, void *state_ptr, ModuleStateT &module_state) |
HALIDE_MUST_USE_RESULT bool | resize_table (int size_bits) |
template<typename FreeModuleT > | |
void | release_context (void *user_context, bool all, ContextT context, FreeModuleT &f) |
template<typename FreeModuleT > | |
void | delete_context (void *user_context, ContextT context, FreeModuleT &f) |
template<typename FreeModuleT > | |
void | release_all (void *user_context, FreeModuleT &f) |
template<typename CompileModuleT , typename... Args> | |
HALIDE_MUST_USE_RESULT bool | kernel_state_setup (void *user_context, void **state_ptr, ContextT context, ModuleStateT &result, CompileModuleT f, Args... args) |
void | release_hold (void *user_context, ContextT context, void *state_ptr) |
Static Public Member Functions | |
static ALWAYS_INLINE uintptr_t | kernel_hash (ContextT context, uint32_t id, uint32_t bits) |
Definition at line 8 of file gpu_context_common.h.
|
inlinestatic |
Definition at line 36 of file gpu_context_common.h.
Referenced by Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::find_internal(), and Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::insert().
|
inline |
Definition at line 47 of file gpu_context_common.h.
References halide_assert, Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::kernel_hash(), and Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::resize_table().
Referenced by Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::kernel_state_setup(), and Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::resize_table().
|
inline |
Definition at line 73 of file gpu_context_common.h.
References Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::kernel_hash().
Referenced by Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::kernel_state_setup(), Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::lookup(), and Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::release_hold().
|
inline |
Definition at line 97 of file gpu_context_common.h.
References Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::find_internal().
|
inline |
Definition at line 108 of file gpu_context_common.h.
References free(), halide_assert, Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::insert(), malloc(), and memset().
Referenced by Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::insert().
|
inline |
Definition at line 137 of file gpu_context_common.h.
References user_context.
Referenced by Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::delete_context(), and Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::release_all().
|
inline |
Definition at line 158 of file gpu_context_common.h.
References Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::release_context(), and user_context.
|
inline |
Definition at line 165 of file gpu_context_common.h.
References free(), Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::release_context(), and user_context.
|
inline |
|
inline |
Definition at line 211 of file gpu_context_common.h.
References Halide::Internal::GPUCompilationCache< ContextT, ModuleStateT >::find_internal(), halide_assert, Halide::Internal::IRMatcher::mod(), and user_context.