mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-04 09:32:00 +00:00 
			
		
		
		
	metal : add missing asserts (#7617)
This commit is contained in:
		@@ -1597,8 +1597,8 @@ static void ggml_vk_graph_compute(struct ggml_kompute_context * ctx, struct ggml
 | 
				
			|||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        GGML_ASSERT(ne00 == ne10);
 | 
					                        GGML_ASSERT(ne00 == ne10);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        ggml_is_contiguous_2(src0);
 | 
					                        GGML_ASSERT(ggml_is_contiguous_2(src0));
 | 
				
			||||||
                        ggml_is_contiguous_2(src1);
 | 
					                        GGML_ASSERT(ggml_is_contiguous_2(src1));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        GGML_ASSERT(ne12 % ne02 == 0);
 | 
					                        GGML_ASSERT(ne12 % ne02 == 0);
 | 
				
			||||||
                        GGML_ASSERT(ne13 % ne03 == 0);
 | 
					                        GGML_ASSERT(ne13 % ne03 == 0);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1519,8 +1519,8 @@ static enum ggml_status ggml_metal_graph_compute(
 | 
				
			|||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        GGML_ASSERT(ne00 == ne10);
 | 
					                        GGML_ASSERT(ne00 == ne10);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        ggml_is_contiguous_2(src0);
 | 
					                        GGML_ASSERT(ggml_is_contiguous_2(src0));
 | 
				
			||||||
                        ggml_is_contiguous_2(src1);
 | 
					                        GGML_ASSERT(ggml_is_contiguous_2(src1));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        GGML_ASSERT(ne12 % ne02 == 0);
 | 
					                        GGML_ASSERT(ne12 % ne02 == 0);
 | 
				
			||||||
                        GGML_ASSERT(ne13 % ne03 == 0);
 | 
					                        GGML_ASSERT(ne13 % ne03 == 0);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user