張小凡

Results 13 issues of 張小凡

Please add code in src/HrWidgetView.mc and download last Connect IQ SDK release to new version, Thanks a lot~ code like this : else if(dc.getWidth() == 215 && dc.getHeight() == 180){...

书上说,须在销毁设备之前之前调用vkDeviceWaitIdle(),以等待所有设备可能存在的未完成的任何工作。 为了保持向前兼容性,所以默认参数设计成默认不启用。 ```cpp NCNN_EXPORT void destroy_gpu_instance(int need_wait = 0); ``` 引用出处: ![圖片](https://github.com/Tencent/ncnn/assets/2672931/26e2e825-3835-40de-a2a7-6e78082537d6)

Add VK_EXT_pageable_device_local_memory support ### Why do this change? * [https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkAllocateMemory.html](https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkAllocateMemory.html) * [https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.html](https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.html) If the [VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT](https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT.html)::pageableDeviceLocalMemory feature is enabled, memory allocations made from a heap that includes VK_MEMORY_HEAP_DEVICE_LOCAL_BIT in [VkMemoryHeap](https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkMemoryHeap.html)::flags may...

core

### AVX512(Intel® Advanced Vector Extensions 512) > **AVX512_BITALG** (expect to add) > **AVX512_VPOPCNTDQ** (expect to add) > **AVX512_VP2INTERSECT** (expect to add) > > AVX512PF (Intel® Xeon Phi™ only.) > AVX512ER...

# Add yolov8 ncnn example ReadMe Convert yolov8 model to ncnn model workflow: ## step 1: If you don't want to train the model yourself. You should go to the...

example

## error log | 日志或报错信息 | ログ 初始化ncnn时,在 [VulkanDevice::init_device_extension()](https://github.com/Tencent/ncnn/blob/86e1ed067a44c124812e056eec86eeef27ae468b/src/gpu.cpp#L3625C62-L3625C81) 中崩溃了。 以下是vc dump查看器的调用栈截图: ![f4040cb3285b4d47879e51f8b27d8dc5](https://github.com/Tencent/ncnn/assets/2672931/2db4961e-46bb-4eaf-9334-a15d2b8c2300) ![c7cb2aa67a2f89542a5a1f6ed3f02723](https://github.com/Tencent/ncnn/assets/2672931/693f3cf4-1c06-43c8-9d67-6cece8f0806e) [以下来自目前最新版ncnn的代码片段,以及个人理解给的注释](https://github.com/Tencent/ncnn/blob/86e1ed067a44c124812e056eec86eeef27ae468b/src/gpu.cpp#L2654): ```c++ VkResult ret = vkCreateDevice(info.physical_device(), &deviceCreateInfo, 0, &d->device); // 这一句失败了,d->device为无效值 if (ret != VK_SUCCESS) {...

## Added x86 'sm3/sm4' detection godbolt ISA test: ![圖片](https://github.com/user-attachments/assets/c1c5b10b-77c2-4ec8-b86c-1096a1ecc040) ## x86 ISA Document ### SM3 ![圖片](https://github.com/user-attachments/assets/57f88ae8-3192-4ff4-9a1f-9922a41bd131) ### SM4 ![圖片](https://github.com/user-attachments/assets/20ae5f90-a730-4e73-8f9e-0409cb8c4def)

## Added x86 'sha256/sha512' detection. x86 sha isa reference: [Intel_SHA_extensions Wikipedia](https://en.wikipedia.org/wiki/Intel_SHA_extensions) ![圖片](https://github.com/user-attachments/assets/e30c0e50-e7cf-4c01-bf3d-062ebc58d373) So I rename x86 'sha' to 'sha1'. ## Test godbolt test: ![圖片](https://github.com/user-attachments/assets/f0bfbdeb-9a25-4c35-9aa9-62d9ce7b01d4)

Using OpenMP to improve yolov8 post-processing efficiency. ```c++ #if NCNN_SIMPLEOMP #include "simpleomp.h" #else #include #endif ... static void parse_yolov8_detections( float* inputs, float confidence_threshold, int num_channels, int num_anchors, int num_labels, int...

example

## simplestl std::unordered_map online compiler : https://coliru.stacked-crooked.com/a/a6c633f30aaed522 test code: ```cpp std::unordered_map map1; map1.insert(std::make_pair(1, 21)); map1.insert(std::make_pair(0, 10)); map1[0] = 20; map1.erase(1); map1.emplace(1, 11); map1.insert(std::make_pair(2, 12)); map1.emplace(3, 13); printf("map1 key %d has...

core