Fixed and readded debug code for causes
This commit is contained in:
parent
d86f10ad5f
commit
fe40950b85
1 changed files with 7 additions and 0 deletions
|
@ -1120,8 +1120,15 @@ static int ggml_backend_sched_backend_from_buffer(ggml_backend_sched_t sched, co
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
#define GGML_SCHED_MAX_SPLITS_DEBUG 4096
|
||||||
|
static char causes[GGML_DEFAULT_GRAPH_SIZE*16 + GGML_SCHED_MAX_SPLITS_DEBUG*GGML_SCHED_MAX_SPLIT_INPUTS][128]; // debug only
|
||||||
|
#define SET_CAUSE(node, ...) sprintf(causes[hash_id(node)], __VA_ARGS__)
|
||||||
|
#define GET_CAUSE(node) causes[hash_id(node)]
|
||||||
|
#else
|
||||||
#define SET_CAUSE(node, ...)
|
#define SET_CAUSE(node, ...)
|
||||||
#define GET_CAUSE(node) ""
|
#define GET_CAUSE(node) ""
|
||||||
|
#endif
|
||||||
|
|
||||||
// returns the backend that should be used for the node based on the current locations
|
// returns the backend that should be used for the node based on the current locations
|
||||||
static int ggml_backend_sched_backend_id_from_cur(ggml_backend_sched_t sched, struct ggml_tensor * tensor) {
|
static int ggml_backend_sched_backend_id_from_cur(ggml_backend_sched_t sched, struct ggml_tensor * tensor) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue