@@ -44,7 +44,7 @@ extern "C" {
4444 * @param device The index of the device to initialize. 
4545 * @return A pointer to the initialized backend instance, or nullptr on failure. 
4646 */ 
47- GGML_API  GGML_CALL   ggml_backend_t  ggml_backend_cann_init (int32_t  device );
47+ GGML_API  ggml_backend_t  ggml_backend_cann_init (int32_t  device );
4848
4949/** 
5050 * @brief Checks if a given backend is a CANN backend. 
@@ -55,7 +55,7 @@ GGML_API GGML_CALL ggml_backend_t ggml_backend_cann_init(int32_t device);
5555 * @param backend The backend instance to check. 
5656 * @return True if the backend is a CANN backend, false otherwise. 
5757 */ 
58- GGML_API  GGML_CALL   bool  ggml_backend_is_cann (ggml_backend_t  backend );
58+ GGML_API  bool  ggml_backend_is_cann (ggml_backend_t  backend );
5959
6060/** 
6161 * @brief Retrieves the CANN buffer type for a specified device. 
@@ -67,7 +67,7 @@ GGML_API GGML_CALL bool ggml_backend_is_cann(ggml_backend_t backend);
6767 * @return A pointer to the buffer type interface for the specified device, or 
6868 * nullptr if the device index is out of range. 
6969 */ 
70- GGML_API  GGML_CALL   ggml_backend_buffer_type_t 
70+ GGML_API  ggml_backend_buffer_type_t 
7171ggml_backend_cann_buffer_type (int32_t  device );
7272
7373/** 
@@ -78,14 +78,14 @@ ggml_backend_cann_buffer_type(int32_t device);
7878 * 
7979 * @return The number of CANN devices available. 
8080 */ 
81- GGML_API  GGML_CALL   int32_t  ggml_backend_cann_get_device_count (void );
81+ GGML_API  int32_t  ggml_backend_cann_get_device_count (void );
8282
8383/** 
8484 * @brief pinned host buffer for use with the CPU backend for faster copies between CPU and NPU. 
8585 * 
8686 * @return A pointer to the host buffer type interface. 
8787 */ 
88- GGML_API  GGML_CALL   ggml_backend_buffer_type_t  ggml_backend_cann_host_buffer_type (void );
88+ GGML_API  ggml_backend_buffer_type_t  ggml_backend_cann_host_buffer_type (void );
8989
9090/** 
9191 * @brief Retrieves the description of a specific CANN device. 
@@ -97,7 +97,7 @@ GGML_API GGML_CALL ggml_backend_buffer_type_t ggml_backend_cann_host_buffer_type
9797 * @param description Pointer to a buffer where the description will be written. 
9898 * @param description_size Size of the description buffer. 
9999 */ 
100- GGML_API  GGML_CALL   void  ggml_backend_cann_get_device_description (
100+ GGML_API  void  ggml_backend_cann_get_device_description (
101101    int32_t  device , char *  description , size_t  description_size );
102102
103103/** 
@@ -112,9 +112,9 @@ GGML_API GGML_CALL void ggml_backend_cann_get_device_description(
112112 * @param total Pointer to a variable where the total memory size will be 
113113 * stored. 
114114 */ 
115- GGML_API  GGML_CALL   void  ggml_backend_cann_get_device_memory (int32_t  device ,
116-                                                              size_t *  free ,
117-                                                              size_t *  total );
115+ GGML_API  void  ggml_backend_cann_get_device_memory (int32_t  device ,
116+                                                   size_t *  free ,
117+                                                   size_t *  total );
118118
119119/** 
120120 * @brief Set the logging callback for GGML. 
0 commit comments