Browse Source

apply code-format changes

pull/5471/head
zhouwg github-actions[bot] 2 years ago
parent
commit
fbfa1190e1
2 changed files with 2 additions and 5 deletions
  1. +1
    -4
      src/gpu.cpp
  2. +1
    -1
      src/gpu.h

+ 1
- 4
src/gpu.cpp View File

@@ -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

+ 1
- 1
src/gpu.h View File

@@ -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);



Loading…
Cancel
Save