| @@ -5762,4 +5762,24 @@ int resolve_shader_info(const uint32_t* spv_data, size_t spv_data_size, ShaderIn | |||||
| } // namespace ncnn | } // namespace ncnn | ||||
| #else | |||||
| namespace ncnn { | |||||
| int create_gpu_instance(const char* driver_path) | |||||
| { | |||||
| return 0; | |||||
| } | |||||
| void destroy_gpu_instance() | |||||
| { | |||||
| } | |||||
| int get_gpu_count() | |||||
| { | |||||
| return 0; | |||||
| } | |||||
| } // namespace ncnn | |||||
| #endif // NCNN_VULKAN | #endif // NCNN_VULKAN | ||||
| @@ -551,6 +551,16 @@ public: | |||||
| NCNN_EXPORT int resolve_shader_info(const uint32_t* spv_data, size_t spv_data_size, ShaderInfo& shader_info); | NCNN_EXPORT int resolve_shader_info(const uint32_t* spv_data, size_t spv_data_size, ShaderInfo& shader_info); | ||||
| } // namespace ncnn | |||||
| #else | |||||
| namespace ncnn { | |||||
| NCNN_EXPORT int create_gpu_instance(const char* driver_path = 0); | |||||
| NCNN_EXPORT void destroy_gpu_instance(void); | |||||
| NCNN_EXPORT int get_gpu_count(void); | |||||
| } // namespace ncnn | } // namespace ncnn | ||||
| #endif // NCNN_VULKAN | #endif // NCNN_VULKAN | ||||
| @@ -2173,6 +2173,13 @@ void Extractor::set_staging_vkallocator(VkAllocator* allocator) | |||||
| { | { | ||||
| d->opt.staging_vkallocator = allocator; | d->opt.staging_vkallocator = allocator; | ||||
| } | } | ||||
| #else | |||||
| void Extractor::set_vulkan_compute(bool enable) | |||||
| { | |||||
| } | |||||
| #endif // NCNN_VULKAN | #endif // NCNN_VULKAN | ||||
| #if NCNN_STRING | #if NCNN_STRING | ||||
| @@ -191,6 +191,8 @@ public: | |||||
| void set_workspace_vkallocator(VkAllocator* allocator); | void set_workspace_vkallocator(VkAllocator* allocator); | ||||
| void set_staging_vkallocator(VkAllocator* allocator); | void set_staging_vkallocator(VkAllocator* allocator); | ||||
| #else | |||||
| void set_vulkan_compute(bool enable); | |||||
| #endif // NCNN_VULKAN | #endif // NCNN_VULKAN | ||||
| #if NCNN_STRING | #if NCNN_STRING | ||||