mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	cann: update cmake (#8765)
This commit is contained in:
		| @@ -207,6 +207,7 @@ set(GGML_PUBLIC_HEADERS | |||||||
|     include/ggml-alloc.h |     include/ggml-alloc.h | ||||||
|     include/ggml-backend.h |     include/ggml-backend.h | ||||||
|     include/ggml-blas.h |     include/ggml-blas.h | ||||||
|  |     include/ggml-cann.h | ||||||
|     include/ggml-cuda.h |     include/ggml-cuda.h | ||||||
|     include/ggml.h |     include/ggml.h | ||||||
|     include/ggml-kompute.h |     include/ggml-kompute.h | ||||||
|   | |||||||
| @@ -849,11 +849,6 @@ if (GGML_CANN) | |||||||
|                 ${CANN_INSTALL_DIR}/acllib/include |                 ${CANN_INSTALL_DIR}/acllib/include | ||||||
|             ) |             ) | ||||||
|  |  | ||||||
|             # TODO: find libs |  | ||||||
|             link_directories( |  | ||||||
|                 ${CANN_INSTALL_DIR}/lib64 |  | ||||||
|             ) |  | ||||||
|  |  | ||||||
|             add_subdirectory(ggml-cann/kernels) |             add_subdirectory(ggml-cann/kernels) | ||||||
|             list(APPEND CANN_LIBRARIES |             list(APPEND CANN_LIBRARIES | ||||||
|                 ascendcl |                 ascendcl | ||||||
| @@ -872,6 +867,7 @@ if (GGML_CANN) | |||||||
|  |  | ||||||
|             set(GGML_EXTRA_LIBS     ${GGML_EXTRA_LIBS}     ${CANN_LIBRARIES} ) |             set(GGML_EXTRA_LIBS     ${GGML_EXTRA_LIBS}     ${CANN_LIBRARIES} ) | ||||||
|             set(GGML_EXTRA_INCLUDES ${GGML_EXTRA_INCLUDES} ${CANN_INCLUDE_DIRS}) |             set(GGML_EXTRA_INCLUDES ${GGML_EXTRA_INCLUDES} ${CANN_INCLUDE_DIRS}) | ||||||
|  |             set(GGML_EXTRA_LIBDIRS  ${GGML_EXTRA_LIBDIRS}  ${CANN_INSTALL_DIR}/lib64) | ||||||
|             list(APPEND GGML_CDEF_PUBLIC GGML_USE_CANN) |             list(APPEND GGML_CDEF_PUBLIC GGML_USE_CANN) | ||||||
|         endif() |         endif() | ||||||
|     else() |     else() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 wangshuai09
					wangshuai09