mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-04 09:32:00 +00:00 
			
		
		
		
	ggml-cpu: move macro definitions
Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
		@@ -55,20 +55,6 @@ if (GGML_ALL_WARNINGS)
 | 
				
			|||||||
    endif()
 | 
					    endif()
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (GGML_VXE)
 | 
					 | 
				
			||||||
    add_compile_definitions(GGML_VXE)
 | 
					 | 
				
			||||||
    target_compile_definitions(ggml PUBLIC GGML_VXE)
 | 
					 | 
				
			||||||
    target_compile_definitions(ggml-base PUBLIC GGML_VXE)
 | 
					 | 
				
			||||||
    message(STATUS "GGML_VXE triggered")
 | 
					 | 
				
			||||||
endif()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if (GGML_NNPA)
 | 
					 | 
				
			||||||
    add_compile_definitions(GGML_NNPA)
 | 
					 | 
				
			||||||
    target_compile_definitions(ggml PUBLIC GGML_NNPA)
 | 
					 | 
				
			||||||
    target_compile_definitions(ggml-base PUBLIC GGML_NNPA)
 | 
					 | 
				
			||||||
    message(STATUS "GGML_NNPA triggered")
 | 
					 | 
				
			||||||
endif()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if (GGML_LTO)
 | 
					if (GGML_LTO)
 | 
				
			||||||
    include(CheckIPOSupported)
 | 
					    include(CheckIPOSupported)
 | 
				
			||||||
    check_ipo_supported(RESULT result OUTPUT output)
 | 
					    check_ipo_supported(RESULT result OUTPUT output)
 | 
				
			||||||
@@ -416,3 +402,17 @@ if (BUILD_SHARED_LIBS)
 | 
				
			|||||||
        target_compile_definitions(${target} PUBLIC  GGML_SHARED)
 | 
					        target_compile_definitions(${target} PUBLIC  GGML_SHARED)
 | 
				
			||||||
    endforeach()
 | 
					    endforeach()
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if (GGML_VXE)
 | 
				
			||||||
 | 
					    add_compile_definitions(GGML_VXE)
 | 
				
			||||||
 | 
					    target_compile_definitions(ggml PUBLIC GGML_VXE)
 | 
				
			||||||
 | 
					    target_compile_definitions(ggml-base PUBLIC GGML_VXE)
 | 
				
			||||||
 | 
					    message(STATUS "GGML_VXE triggered")
 | 
				
			||||||
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if (GGML_NNPA)
 | 
				
			||||||
 | 
					    add_compile_definitions(GGML_NNPA)
 | 
				
			||||||
 | 
					    target_compile_definitions(ggml PUBLIC GGML_NNPA)
 | 
				
			||||||
 | 
					    target_compile_definitions(ggml-base PUBLIC GGML_NNPA)
 | 
				
			||||||
 | 
					    message(STATUS "GGML_NNPA triggered")
 | 
				
			||||||
 | 
					endif()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user