Comments (7)
NCNN_VULKAN=ON
means using inner of ncnn vulkan rather than using VULKAN_SDK
from ncnndotnet.
-6 is VK_ERROR_LAYER_NOT_PRESENT
from ncnndotnet.
But run on Ubuntu 18, vkEnumeratePhysicalDevices failed -3
-3 is VK_ERROR_INITIALIZATION_FAILED
from ncnndotnet.
In Windows, 1.1.92.1\Demos\vulkaninfo.c
does not return this error.
Set 0 to layer_name, and vkEnumerateInstanceExtensionProperties returned 0 and ext_count is 12.
static void AppGetGlobalLayerExtensions(char *layer_name, uint32_t *extension_count, VkExtensionProperties **extension_properties) {
VkResult err;
uint32_t ext_count = 0;
VkExtensionProperties *ext_ptr = NULL;
/* repeat get until VK_INCOMPLETE goes away */
do {
// gets the extension count if the last parameter is NULL
err = vkEnumerateInstanceExtensionProperties(layer_name, &ext_count, NULL);
assert(!err);
if (ext_ptr) {
free(ext_ptr);
}
ext_ptr = malloc(ext_count * sizeof(VkExtensionProperties));
// gets the extension properties if the last parameter is not NULL
err = vkEnumerateInstanceExtensionProperties(layer_name, &ext_count, ext_ptr);
} while (err == VK_INCOMPLETE);
assert(!err);
*extension_count = ext_count;
*extension_properties = ext_ptr;
}
```
from ncnndotnet.
Ok. On Windows works fine.
dotnet run -c Release goldfish.jpg
[0 GeForce GTX 1080] queueC=2[8] queueG=0[16] queueT=1[1] buglssc=0
[0 GeForce GTX 1080] fp16p=1 fp16s=1 fp16a=0 int8s=1 int8a=1
[1 Intel(R) UHD Graphics 630] queueC=0[1] queueG=0[1] queueT=0[1] buglssc=0
[1 Intel(R) UHD Graphics 630] fp16p=1 fp16s=1 fp16a=1 int8s=1 int8a=1
1 = 1
107 = 3.5345554E-05
950 = 1.5199184E-05
Maybe, Tha reason why apps returns -3 on Ubuntu is GTX750-Ti.
In http://vulkan.gpuinfo.org/, 750Ti seems to be supported in case of old API.
1.1.92.1 does not support legacy GPU?
from ncnndotnet.
In OSX,
i$ dotnet run -c Release goldfish.jpg
vkCreateInstance failed -9
1 = 0.9998958
107 = 3.3138436E-05
950 = 1.4203382E-05
-9 is VK_ERROR_INCOMPATIBLE_DRIVER
.
My mac has Intel HD 4000. It seems to be too old.
from ncnndotnet.
In Ubutun with 1080, it works fine.
$ dotnet run -c Release goldfish.jpg
[0 GeForce GTX 1080] queueC=2[8] queueG=0[16] queueT=1[2] buglssc=0
[0 GeForce GTX 1080] fp16p=1 fp16s=1 fp16a=0 int8s=1 int8a=1
1 = 1
107 = 3.5345554E-05
950 = 1.5199184E-05
from ncnndotnet.
Related Issues (20)
- Could not return label greater than 10 HOT 5
- How should I use NcnnDotNet.C.Ncnn.MatToPixels() method? HOT 1
- How to load params and models from memory? HOT 5
- Unhandled exception. System.EntryPointNotFoundException: Unable to find an entry point named 'mat_Mat_create2' in DLL 'NcnnDotNetNative'. HOT 1
- windows server运行出错 HOT 8
- Do you support the scrfd algorithm model? HOT 15
- How to Build for Windows x86 using VS2019 HOT 7
- how to use? no doc. HOT 4
- Set option? HOT 4
- Memory overhead against original ncnn HOT 7
- How to convert Mat to Bitmap ? HOT 14
- Typo: Substract HOT 1
- CvLoadImage enum has wrong values
- NcnnDotNet v0.0.0.20230101 - System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' HOT 3
- Speed in GPU is slower than Cpu HOT 3
- what wrong of the code? scoreBlob, bboxBlob,landmarkBlob are all zero! HOT 2
- how using NcnnDotNet in android for license plate Cars
- NcnnDotNet with OpencvSharp HOT 1
- Extractor error when using with camera
- (System.AccessViolationException) Bitmap ToMat Issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ncnndotnet.