mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	ggml : reduce hash table reset cost (#8698)
* ggml : reduce hash table reset cost
* fix unreachable code warnings after GGML_ASSERT(false)
* GGML_ASSERT(false) -> GGML_ABORT("fatal error")
* GGML_ABORT use format string
			
			
This commit is contained in:
		| @@ -127,7 +127,7 @@ bool IMatrixCollector::collect_imatrix(struct ggml_tensor * t, bool ask, void * | ||||
|         } | ||||
|         else if (e.values.size() != (size_t)src1->ne[0]*n_as) { | ||||
|             fprintf(stderr, "Oops: inconsistent size for %s (%d vs %d)\n", wname.c_str(), (int)e.values.size(), (int)src1->ne[0]*n_as); | ||||
|             exit(1); //GGML_ASSERT(false); | ||||
|             exit(1); //GGML_ABORT("fatal error"); | ||||
|         } | ||||
|         if (m_params.verbosity > 1) { | ||||
|             printf("%s[%d]: %32s, %s, %5d x %5d, %d\n", __func__, m_last_call, wname.c_str(), ggml_op_name(t->op), (int)src1->ne[0], (int)src1->ne[2], (int)src1->type); | ||||
| @@ -176,7 +176,7 @@ bool IMatrixCollector::collect_imatrix(struct ggml_tensor * t, bool ask, void * | ||||
|         } | ||||
|         else if (e.values.size() != (size_t)src1->ne[0]) { | ||||
|             fprintf(stderr, "Oops: inconsistent size for %s (%d vs %d)\n", wname.c_str(), (int)e.values.size(), (int)src1->ne[0]); | ||||
|             exit(1); //GGML_ASSERT(false); | ||||
|             exit(1); //GGML_ABORT("fatal error"); | ||||
|         } | ||||
|         ++e.ncall; | ||||
|         if (m_params.verbosity > 1) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 slaren
					slaren