Halide 19.0.0
Halide compiler and libraries
|
#include <ThreadInfo.h>
Public Member Functions | |
ThreadInfo (int vectorized_loop_index, const std::vector< int64_t > &size, const std::vector< FunctionDAG::Node::Loop > &loop, const std::vector< int64_t > &max_thread_counts) | |
template<typename Fn > | |
void | for_each_thread_id (const Fn &fn) const |
template<typename Fn > | |
void | for_each_thread_id_in_first_warp (Fn &fn) const |
template<typename Fn > | |
void | for_each_thread_id_in_tail_warp (Fn &fn) const |
template<typename Fn > | |
void | for_each_active_thread_id (const Fn &fn) const |
double | warp_lane_utilization () const |
double | idle_lane_wastage () const |
double | block_occupancy () const |
Public Attributes | |
int | num_warps_per_block = 0 |
int | num_active_warps_per_block = 0 |
int | num_regular_active_warps_per_block = 0 |
bool | has_tail_warp = false |
int | final_warp_initial_thread_id = 0 |
int | num_threads_in_final_warp = 0 |
int | threads_in_this_block [3] = {1, 1, 1} |
int64_t | num_threads_in_this_block = 1 |
int | threads [3] = {1, 1, 1} |
int64_t | num_threads = 1 |
int64_t | num_active_threads = 0 |
std::vector< int > | loop_indices |
std::vector< std::string > | loop_vars |
Definition at line 40 of file ThreadInfo.h.
|
inline |
Definition at line 41 of file ThreadInfo.h.
References internal_assert, loop_indices, loop_vars, num_threads, num_threads_in_this_block, and threads.
|
inline |
Definition at line 87 of file ThreadInfo.h.
References num_threads_in_this_block, threads, and threads_in_this_block.
Referenced by for_each_active_thread_id().
|
inline |
Definition at line 109 of file ThreadInfo.h.
References threads, and threads_in_this_block.
|
inline |
Definition at line 136 of file ThreadInfo.h.
References final_warp_initial_thread_id, internal_assert, num_threads_in_final_warp, threads, and threads_in_this_block.
|
inline |
Definition at line 156 of file ThreadInfo.h.
References for_each_thread_id().
|
inline |
Definition at line 166 of file ThreadInfo.h.
References num_active_threads, and num_active_warps_per_block.
|
inline |
Definition at line 170 of file ThreadInfo.h.
References num_active_threads, and num_active_warps_per_block.
|
inline |
Definition at line 174 of file ThreadInfo.h.
References num_threads.
int Halide::Internal::Autoscheduler::ThreadInfo::num_warps_per_block = 0 |
Definition at line 178 of file ThreadInfo.h.
int Halide::Internal::Autoscheduler::ThreadInfo::num_active_warps_per_block = 0 |
Definition at line 179 of file ThreadInfo.h.
Referenced by idle_lane_wastage(), and warp_lane_utilization().
int Halide::Internal::Autoscheduler::ThreadInfo::num_regular_active_warps_per_block = 0 |
Definition at line 180 of file ThreadInfo.h.
bool Halide::Internal::Autoscheduler::ThreadInfo::has_tail_warp = false |
Definition at line 181 of file ThreadInfo.h.
int Halide::Internal::Autoscheduler::ThreadInfo::final_warp_initial_thread_id = 0 |
Definition at line 182 of file ThreadInfo.h.
Referenced by for_each_thread_id_in_tail_warp().
int Halide::Internal::Autoscheduler::ThreadInfo::num_threads_in_final_warp = 0 |
Definition at line 183 of file ThreadInfo.h.
Referenced by for_each_thread_id_in_tail_warp().
int Halide::Internal::Autoscheduler::ThreadInfo::threads_in_this_block[3] = {1, 1, 1} |
Definition at line 185 of file ThreadInfo.h.
Referenced by for_each_thread_id(), for_each_thread_id_in_first_warp(), and for_each_thread_id_in_tail_warp().
int64_t Halide::Internal::Autoscheduler::ThreadInfo::num_threads_in_this_block = 1 |
Definition at line 186 of file ThreadInfo.h.
Referenced by for_each_thread_id(), and ThreadInfo().
int Halide::Internal::Autoscheduler::ThreadInfo::threads[3] = {1, 1, 1} |
Definition at line 188 of file ThreadInfo.h.
Referenced by for_each_thread_id(), for_each_thread_id_in_first_warp(), for_each_thread_id_in_tail_warp(), and ThreadInfo().
int64_t Halide::Internal::Autoscheduler::ThreadInfo::num_threads = 1 |
Definition at line 189 of file ThreadInfo.h.
Referenced by block_occupancy(), and ThreadInfo().
int64_t Halide::Internal::Autoscheduler::ThreadInfo::num_active_threads = 0 |
Definition at line 190 of file ThreadInfo.h.
Referenced by idle_lane_wastage(), and warp_lane_utilization().
std::vector<int> Halide::Internal::Autoscheduler::ThreadInfo::loop_indices |
Definition at line 192 of file ThreadInfo.h.
Referenced by ThreadInfo().
std::vector<std::string> Halide::Internal::Autoscheduler::ThreadInfo::loop_vars |
Definition at line 193 of file ThreadInfo.h.
Referenced by ThreadInfo().