From fbfa1190e1e7e05ba8db0189c91e956e3036c072 Mon Sep 17 00:00:00 2001 From: zhouwg Date: Tue, 28 May 2024 09:06:28 +0000 Subject: [PATCH] apply code-format changes --- src/gpu.cpp | 5 +---- src/gpu.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gpu.cpp b/src/gpu.cpp index 770630283..ef1b5a981 100644 --- a/src/gpu.cpp +++ b/src/gpu.cpp @@ -4553,17 +4553,15 @@ int resolve_shader_info(const uint32_t* spv_data, size_t spv_data_size, ShaderIn namespace ncnn { -int create_gpu_instance(const char * driver_path) +int create_gpu_instance(const char* driver_path) { return 0; } - void destroy_gpu_instance() { } - int get_gpu_count() { return 0; @@ -4571,5 +4569,4 @@ int get_gpu_count() } // namespace ncnn - #endif // NCNN_VULKAN diff --git a/src/gpu.h b/src/gpu.h index 82a9b988e..d15054846 100644 --- a/src/gpu.h +++ b/src/gpu.h @@ -478,7 +478,7 @@ NCNN_EXPORT int resolve_shader_info(const uint32_t* spv_data, size_t spv_data_si #else namespace ncnn { -NCNN_EXPORT int create_gpu_instance(const char * driver_path = 0); +NCNN_EXPORT int create_gpu_instance(const char* driver_path = 0); NCNN_EXPORT void destroy_gpu_instance(void);