DevinBayly / vulkan_containers

0 stars 0 forks source link

outside singularity vulkaninfo fail #6

Open DevinBayly opened 3 years ago

DevinBayly commented 3 years ago
exouser@multiply-awaited-cricket:~$ vulkaninfo
WARNING: [Loader Message] Code 0 : loader_icd_scan: Can not find 'ICD' object in ICD JSON file /usr/share/vulkan/icd.d/nvidia_layers.json.  Skipping ICD JSON
ERROR at /build/vulkan-tools-1.2.162.1~rc1-1lunarg18.04/vulkaninfo/vulkaninfo.h:248:vkGetPhysicalDeviceSurfaceFormats2KHR failed with ERROR_INITIALIZATION_FAILED

I believe this is related to https://github.com/gfx-rs/wgpu-rs/issues/673 ?

https://dev.getsol.us/T6335 suggests modifying the /usr/share/vulkan/icd.d/ to only have nvidia listed?

DevinBayly commented 3 years ago
ls /usr/share/vulkan/icd.d/
nvidia_icd.json  nvidia_layers.json
exouser@multiply-awaited-cricket:~$ 

Nothing else is in there though...

DevinBayly commented 3 years ago

https://vulkan.lunarg.com/issue/home?limit=10;q=;mine=false;org=false;khronos=false;lunarg=false;indie=false;status=new,open is related.

Removing the nvidia_layers.json causes other error

ERROR at /build/vulkan-tools-1.2.162.1~rc1-1lunarg18.04/vulkaninfo/vulkaninfo.h:248:vkGetPhysicalDeviceSurfaceFormats2KHR failed with ERROR_INITIALIZATION_FAILED
DevinBayly commented 3 years ago

removing vulkan and re-installing version 1.1.121 using the tar file actually gets output from the vulkan info command now.

DevinBayly commented 3 years ago

but its the same error I've seen for when vulkaninfo prints until segfault. Not even vglrun changes the result.

exouser@multiply-awaited-cricket:~$ vglrun vulkaninfo 
==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.121

Instance Extensions:
====================
Instance Extensions count = 17
    VK_EXT_acquire_xlib_display         : extension revision  1
    VK_EXT_debug_report                 : extension revision  9
    VK_EXT_debug_utils                  : extension revision  2
    VK_EXT_direct_mode_display          : extension revision  1
    VK_EXT_display_surface_counter      : extension revision  1
    VK_KHR_device_group_creation        : extension revision  1
    VK_KHR_display                      : extension revision 23
    VK_KHR_external_fence_capabilities  : extension revision  1
    VK_KHR_external_memory_capabilities : extension revision  1
    VK_KHR_external_semaphore_capabilities: extension revision  1
    VK_KHR_get_display_properties2      : extension revision  1
    VK_KHR_get_physical_device_properties2: extension revision  2
    VK_KHR_get_surface_capabilities2    : extension revision  1
    VK_KHR_surface                      : extension revision 25
    VK_KHR_surface_protected_capabilities: extension revision  1
    VK_KHR_xcb_surface                  : extension revision  6
    VK_KHR_xlib_surface                 : extension revision  6
Layers: count = 14
=======
VK_LAYER_GOOGLE_threading (Google Validation Layer) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 1
        VK_EXT_debug_report                 : extension revision  6
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 0

VK_LAYER_GOOGLE_unique_objects (Google Validation Layer) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 0
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 0

VK_LAYER_KHRONOS_validation (LunarG Validation Layer) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 3
        VK_EXT_debug_report                 : extension revision  9
        VK_EXT_debug_utils                  : extension revision  1
        VK_EXT_validation_features          : extension revision  2
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 2
            VK_EXT_debug_marker                 : extension revision  4
            VK_EXT_validation_cache             : extension revision  1

VK_LAYER_LUNARG_api_dump (LunarG API dump layer) Vulkan version 1.1.121, layer version 2
    Layer Extensions    count = 0
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 0

VK_LAYER_LUNARG_assistant_layer (LunarG Validation Layer Factory Layer) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 1
        VK_EXT_debug_report                 : extension revision  6
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 1
            VK_EXT_debug_marker                 : extension revision  4

VK_LAYER_LUNARG_core_validation (LunarG Validation Layer) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 1
        VK_EXT_debug_report                 : extension revision  6
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 2
            VK_EXT_debug_marker                 : extension revision  4
            VK_EXT_validation_cache             : extension revision  1

VK_LAYER_LUNARG_device_simulation (LunarG device simulation layer) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 0
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 0

VK_LAYER_LUNARG_monitor (Execution Monitoring Layer) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 0
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 0

VK_LAYER_LUNARG_object_tracker (LunarG Validation Layer) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 1
        VK_EXT_debug_report                 : extension revision  6
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 1
            VK_EXT_debug_marker                 : extension revision  4

VK_LAYER_LUNARG_parameter_validation (LunarG Validation Layer) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 1
        VK_EXT_debug_report                 : extension revision  6
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 1
            VK_EXT_debug_marker                 : extension revision  4

VK_LAYER_LUNARG_screenshot (LunarG image capture layer) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 0
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 0

VK_LAYER_LUNARG_standard_validation (LunarG Standard Validation) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 3
        VK_EXT_debug_report                 : extension revision  9
        VK_EXT_debug_utils                  : extension revision  1
        VK_EXT_validation_features          : extension revision  2
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 2
            VK_EXT_debug_marker                 : extension revision  4
            VK_EXT_validation_cache             : extension revision  1

VK_LAYER_LUNARG_vktrace (Vktrace tracing library) Vulkan version 1.1.121, layer version 1
    Layer Extensions    count = 0
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 0

VK_LAYER_NV_optimus (NVIDIA Optimus layer) Vulkan version 1.2.155, layer version 1
    Layer Extensions    count = 0
    Devices     count = 1
        GPU id       : 0 (GRID V100X-4Q)
        Layer-Device Extensions count = 0

Presentable Surfaces:
=====================
GPU id       : 0 (GRID V100X-4Q)
Surface type : VK_KHR_xlib_surface
/root/sdk-build/1.1.121.1/source/Vulkan-Tools/vulkaninfo/vulkaninfo.c:1587: failed with VK_ERROR_INITIALIZATION_FAILED
Segmentation fault (core dumped)