ggml : minor style + try fix sanitizer build
This commit is contained in:
parent
d0e3596350
commit
67ba34e88f
1 changed files with 6 additions and 5 deletions
5
ggml.c
5
ggml.c
|
@ -16299,8 +16299,10 @@ void clear_numa_thread_affinity(void) {}
|
|||
|
||||
struct ggml_compute_state_shared {
|
||||
struct ggml_cgraph * cgraph;
|
||||
|
||||
int64_t perf_node_start_cycles;
|
||||
int64_t perf_node_start_time_us;
|
||||
|
||||
int n_threads;
|
||||
|
||||
// synchronization primitives
|
||||
|
@ -16314,8 +16316,7 @@ struct ggml_compute_state {
|
|||
struct ggml_compute_state_shared * shared;
|
||||
};
|
||||
|
||||
inline void ggml_graph_compute_perf_stats_node(struct ggml_tensor * node, const struct ggml_compute_state_shared * st)
|
||||
{
|
||||
static void ggml_graph_compute_perf_stats_node(struct ggml_tensor * node, const struct ggml_compute_state_shared * st) {
|
||||
int64_t cycles_cur = ggml_perf_cycles() - st->perf_node_start_cycles;
|
||||
int64_t time_us_cur = ggml_perf_time_us() - st->perf_node_start_time_us;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue