Code Monkey home page Code Monkey logo

Comments (7)

takuya-takeuchi avatar takuya-takeuchi commented on September 28, 2024

NCNN_VULKAN=ON means using inner of ncnn vulkan rather than using VULKAN_SDK

from ncnndotnet.

takuya-takeuchi avatar takuya-takeuchi commented on September 28, 2024

-6 is VK_ERROR_LAYER_NOT_PRESENT

from ncnndotnet.

takuya-takeuchi avatar takuya-takeuchi commented on September 28, 2024

But run on Ubuntu 18, vkEnumeratePhysicalDevices failed -3
-3 is VK_ERROR_INITIALIZATION_FAILED

from ncnndotnet.

takuya-takeuchi avatar takuya-takeuchi commented on September 28, 2024

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.

takuya-takeuchi avatar takuya-takeuchi commented on September 28, 2024

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.

takuya-takeuchi avatar takuya-takeuchi commented on September 28, 2024

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.

takuya-takeuchi avatar takuya-takeuchi commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.