pytorch
39987de9 - [vulkan][caffe2] Add logging for descriptor extensions, fp16 storage

Commit
4 years ago
[vulkan][caffe2] Add logging for descriptor extensions, fp16 storage Summary: `fbcode/caffe2/caffe2/mobile/contrib/libvulkan-stub/BUCK` changes comment: libvulkan-stub contains vulkan headers `VK_HEADER_VERSION 29` fbandroid uses ndk r17 that includes vulkan `VK_HEADER_VERSION 76` which contains defines for extensions that we need. `("include", "**/*.h"),` -> `("include", "*.h"),` means that ndk vulkan headers to use. For fp16_storage logging need to add boilerplate for `vkGetPhysicalDeviceFeatures2KHR` Test Plan: scuba employees device_event logcat getVulkanInfo(). ``` instance ext.name:VK_KHR_surface instance ext.name:VK_KHR_android_surface instance ext.name:VK_EXT_swapchain_colorspace instance ext.name:VK_KHR_get_surface_capabilities2 instance ext.name:VK_EXT_debug_report instance ext.name:VK_KHR_device_group_creation instance ext.name:VK_KHR_external_fence_capabilities instance ext.name:VK_KHR_external_memory_capabilities instance ext.name:VK_KHR_get_physical_device_properties2 instance ext.name:VK_KHR_external_semaphore_capabilities device ext.name:VK_KHR_incremental_present device ext.name:VK_EXT_hdr_metadata device ext.name:VK_KHR_shared_presentable_image device ext.name:VK_GOOGLE_display_timing device ext.name:VK_KHR_push_descriptor device ext.name:VK_KHR_image_format_list device ext.name:VK_EXT_queue_family_foreign device ext.name:VK_ANDROID_external_memory_android_hardware_buffer device ext.name:VK_KHR_external_semaphore_fd device ext.name:VK_KHR_external_fence_fd device ext.name:VK_KHR_external_memory_fd device ext.name:VK_KHR_external_memory device ext.name:VK_KHR_swapchain device ext.name:VK_KHR_external_semaphore device ext.name:VK_KHR_driver_properties device ext.name:VK_KHR_sampler_mirror_clamp_to_edge device ext.name:VK_KHR_multiview device ext.name:VK_KHR_relaxed_block_layout device ext.name:VK_KHR_maintenance1 device ext.name:VK_KHR_maintenance3 device ext.name:VK_KHR_maintenance2 device ext.name:VK_EXT_global_priority device ext.name:VK_KHR_get_memory_requirements2 device ext.name:VK_KHR_descriptor_update_template device ext.name:VK_KHR_bind_memory2 device ext.name:VK_KHR_shader_draw_parameters device ext.name:VK_KHR_dedicated_allocation device ext.name:VK_KHR_create_renderpass2 device ext.name:VK_KHR_draw_indirect_count device ext.name:VK_KHR_sampler_ycbcr_conversion device ext.name:VK_KHR_device_group device ext.name:VK_KHR_external_fence device ext.name:VK_KHR_variable_pointers device ext.name:VK_EXT_sampler_filter_minmax device ext.name:VK_KHR_storage_buffer_storage_class VULKAN_SYMBOL_WRAPPER_LOAD_INSTANCE_SYMBOL(vkGetPhysicalDeviceFeatures2KHR) res=1 mChipsetInfoUtilInfo.getVulkanInfo():{vk_driver_version=2149056512, vk_device_id=100859905, vk_extension_descriptor_update_template=1, vk_api_version=4198487, vk_support_fp16_storage=0, vk_platform_dlopen=success, vk_shader_int16=1, vk_device_type=1, vk_shader_float64=0, vk_extension_push_descriptor=1, vk_shader_int64=0, vk_wrapper_init=true, vk_vendor_id=20803, vk_max_compute_shared_memory_size=32768, vk_device_name=Adreno (TM) 630, vk_max_compute_work_group_invocations=1024, vk_device_count=1} ``` Reviewed By: dreiss Differential Revision: D19564664 fbshipit-source-id: 908b34bdcc24d9b03ecc185edbc5cfb6e7aa27c9
Author
Parents
Loading