-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use vulkan on jetson Jetson Xavier NX could not convert error #6406
Comments
vulkaninfo
|
lscpu |
Your vulkan-headers package is too old, I think. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Please include information about your system, the steps to reproduce the bug, and the version of llama.cpp that you are using. If possible, please provide a minimal code example that reproduces the bug.
system :Linux 5.10.120-tegra #1 SMP PREEMPT Tue Aug 1 12:32:50 PDT 2023 aarch64 aarch64 aarch64 GNU/Linux
jetpack version:5.1.2
error:
[ 1%] Generating build details from Git
[ 2%] Building C object CMakeFiles/ggml.dir/ggml-alloc.c.o
[ 3%] Building CXX object common/CMakeFiles/json-schema-to-grammar.dir/json-schema-to-grammar.cpp.o
[ 3%] Building C object CMakeFiles/ggml.dir/ggml-backend.c.o
[ 4%] Building C object CMakeFiles/ggml.dir/ggml.c.o
[ 5%] Building C object CMakeFiles/ggml.dir/ggml-quants.c.o
-- Found Git: /usr/bin/git (found version "2.25.1")
[ 5%] Building CXX object CMakeFiles/ggml.dir/ggml-vulkan.cpp.o
[ 6%] Building CXX object common/CMakeFiles/build_info.dir/build-info.cpp.o
[ 6%] Built target build_info
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp: In function ‘void ggml_vk_create_pipeline(ggml_backend_vk_context*, vk_pipeline&, const string&, size_t, const void*, const string&, uint32_t, uint32_t, std::array<unsigned int, 3>, std::vector&&, uint32_t)’:
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:431:81: error: could not convert ‘{dsl_binding_flags}’ from ‘’ to ‘vk::DescriptorSetLayoutBindingFlagsCreateInfo’
431 | vk::DescriptorSetLayoutBindingFlagsCreateInfo dslbfci = { dsl_binding_flags };
| ^
| |
|
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:441:20: error: no matching function for call to ‘vk::DescriptorSetLayoutCreateInfo::DescriptorSetLayoutCreateInfo(, std::vectorvk::DescriptorSetLayoutBinding&)’
441 | dsl_binding);
| ^
In file included from /home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:7:
/usr/include/vulkan/vulkan.hpp:27958:5: note: candidate: ‘vk::DescriptorSetLayoutCreateInfo::DescriptorSetLayoutCreateInfo(const VkDescriptorSetLayoutCreateInfo&)’
27958 | DescriptorSetLayoutCreateInfo( VkDescriptorSetLayoutCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27958:5: note: candidate expects 1 argument, 2 provided
/usr/include/vulkan/vulkan.hpp:27944:26: note: candidate: ‘constexpr vk::DescriptorSetLayoutCreateInfo::DescriptorSetLayoutCreateInfo(vk::DescriptorSetLayoutCreateFlags, uint32_t, const vk::DescriptorSetLayoutBinding*)’
27944 | VULKAN_HPP_CONSTEXPR DescriptorSetLayoutCreateInfo( VULKAN_HPP_NAMESPACE::DescriptorSetLayoutCreateFlags flags_ = {},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27945:66: note: no known conversion for argument 2 from ‘std::vectorvk::DescriptorSetLayoutBinding’ to ‘uint32_t’ {aka ‘unsigned int’}
27945 | uint32_t bindingCount_ = {},
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27942:10: note: candidate: ‘constexpr vk::DescriptorSetLayoutCreateInfo::DescriptorSetLayoutCreateInfo(const vk::DescriptorSetLayoutCreateInfo&)’
27942 | struct DescriptorSetLayoutCreateInfo
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27942:10: note: candidate expects 1 argument, 2 provided
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:452:103: error: no matching function for call to ‘vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(, const uint32_t&, vk::DescriptorPoolSize&)’
452 | vk::DescriptorPoolCreateInfo descriptor_pool_create_info({}, alloc_count, descriptor_pool_size);
| ^
In file included from /home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:7:
/usr/include/vulkan/vulkan.hpp:27551:5: note: candidate: ‘vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(const VkDescriptorPoolCreateInfo&)’
27551 | DescriptorPoolCreateInfo( VkDescriptorPoolCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27551:5: note: candidate expects 1 argument, 3 provided
/usr/include/vulkan/vulkan.hpp:27535:26: note: candidate: ‘constexpr vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(vk::DescriptorPoolCreateFlags, uint32_t, uint32_t, const vk::DescriptorPoolSize*)’
27535 | VULKAN_HPP_CONSTEXPR DescriptorPoolCreateInfo( VULKAN_HPP_NAMESPACE::DescriptorPoolCreateFlags flags_ = {},
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27537:61: note: no known conversion for argument 3 from ‘vk::DescriptorPoolSize’ to ‘uint32_t’ {aka ‘unsigned int’}
27537 | uint32_t poolSizeCount_ = {},
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27533:10: note: candidate: ‘constexpr vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(const vk::DescriptorPoolCreateInfo&)’
27533 | struct DescriptorPoolCreateInfo
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27533:10: note: candidate expects 1 argument, 3 provided
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:471:95: error: no matching function for call to ‘vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(, int, vk::DescriptorPoolSize&)’
471 | vk::DescriptorPoolCreateInfo descriptor_pool_create_info({}, 128, descriptor_pool_size);
| ^
In file included from /home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:7:
/usr/include/vulkan/vulkan.hpp:27551:5: note: candidate: ‘vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(const VkDescriptorPoolCreateInfo&)’
27551 | DescriptorPoolCreateInfo( VkDescriptorPoolCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27551:5: note: candidate expects 1 argument, 3 provided
/usr/include/vulkan/vulkan.hpp:27535:26: note: candidate: ‘constexpr vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(vk::DescriptorPoolCreateFlags, uint32_t, uint32_t, const vk::DescriptorPoolSize*)’
27535 | VULKAN_HPP_CONSTEXPR DescriptorPoolCreateInfo( VULKAN_HPP_NAMESPACE::DescriptorPoolCreateFlags flags_ = {},
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27537:61: note: no known conversion for argument 3 from ‘vk::DescriptorPoolSize’ to ‘uint32_t’ {aka ‘unsigned int’}
27537 | uint32_t poolSizeCount_ = {},
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27533:10: note: candidate: ‘constexpr vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(const vk::DescriptorPoolCreateInfo&)’
27533 | struct DescriptorPoolCreateInfo
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27533:10: note: candidate expects 1 argument, 3 provided
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:477:113: error: no matching function for call to ‘vk::PipelineLayoutCreateInfo::PipelineLayoutCreateInfo(vk::PipelineLayoutCreateFlags, vk::DescriptorSetLayout&, vk::PushConstantRange&)’
477 | vk::PipelineLayoutCreateInfo pipeline_layout_create_info(vk::PipelineLayoutCreateFlags(), pipeline->dsl, pcr);
| ^
In file included from /home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:7:
/usr/include/vulkan/vulkan.hpp:52719:5: note: candidate: ‘vk::PipelineLayoutCreateInfo::PipelineLayoutCreateInfo(const VkPipelineLayoutCreateInfo&)’
52719 | PipelineLayoutCreateInfo( VkPipelineLayoutCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:52719:5: note: candidate expects 1 argument, 3 provided
/usr/include/vulkan/vulkan.hpp:52701:26: note: candidate: ‘constexpr vk::PipelineLayoutCreateInfo::PipelineLayoutCreateInfo(vk::PipelineLayoutCreateFlags, uint32_t, const vk::DescriptorSetLayout*, uint32_t, const vk::PushConstantRange*)’
52701 | VULKAN_HPP_CONSTEXPR PipelineLayoutCreateInfo( VULKAN_HPP_NAMESPACE::PipelineLayoutCreateFlags flags_ = {},
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:52703:101: note: no known conversion for argument 3 from ‘vk::PushConstantRange’ to ‘const vk::DescriptorSetLayout*’
52703 | const VULKAN_HPP_NAMESPACE::DescriptorSetLayout* pSetLayouts_ = {},
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:52699:10: note: candidate: ‘constexpr vk::PipelineLayoutCreateInfo::PipelineLayoutCreateInfo(const vk::PipelineLayoutCreateInfo&)’
52699 | struct PipelineLayoutCreateInfo
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:52699:10: note: candidate expects 1 argument, 3 provided
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:505:112: error: conversion from ‘int’ to ‘vk::PipelineCache’ is ambiguous
505 | pipeline->pipeline = ctx->device->device.createComputePipeline(VK_NULL_HANDLE, compute_pipeline_create_info).value;
| ^
In file included from /home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:7:
/usr/include/vulkan/vulkan.hpp:15503:34: note: candidate: ‘vk::PipelineCache::PipelineCache(VkPipelineCache)’
15503 | VULKAN_HPP_TYPESAFE_EXPLICIT PipelineCache( VkPipelineCache pipelineCache ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:15499:26: note: candidate: ‘constexpr vk::PipelineCache::PipelineCache(std::nullptr_t)’
15499 | VULKAN_HPP_CONSTEXPR PipelineCache( std::nullptr_t ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~~~~~~
In file included from /home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:7:
/usr/include/vulkan/vulkan.hpp:63197:129: note: initializing argument 1 of ‘vk::ResultValueTypevk::Pipeline::type vk::Device::createComputePipeline(vk::PipelineCache, const vk::ComputePipelineCreateInfo&, vk::Optional, const Dispatch&) const [with Dispatch = vk::DispatchLoaderStatic; vk::ResultValueTypevk::Pipeline::type = vk::Pipeline]’
63197 | VULKAN_HPP_INLINE typename ResultValueType::type Device::createComputePipeline( VULKAN_HPP_NAMESPACE::PipelineCache pipelineCache, const ComputePipelineCreateInfo & createInfo, Optional allocator, Dispatch const &d ) const
| ^
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp: In function ‘void ggml_pipeline_allocate_descriptor_sets(ggml_backend_vk_context*, vk_pipeline&, uint32_t)’:
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:552:97: error: no matching function for call to ‘vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(, int, vk::DescriptorPoolSize&)’
552 | vk::DescriptorPoolCreateInfo descriptor_pool_create_info({}, 1, descriptor_pool_size);
| ^
In file included from /home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:7:
/usr/include/vulkan/vulkan.hpp:27551:5: note: candidate: ‘vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(const VkDescriptorPoolCreateInfo&)’
27551 | DescriptorPoolCreateInfo( VkDescriptorPoolCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27551:5: note: candidate expects 1 argument, 3 provided
/usr/include/vulkan/vulkan.hpp:27535:26: note: candidate: ‘constexpr vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(vk::DescriptorPoolCreateFlags, uint32_t, uint32_t, const vk::DescriptorPoolSize*)’
27535 | VULKAN_HPP_CONSTEXPR DescriptorPoolCreateInfo( VULKAN_HPP_NAMESPACE::DescriptorPoolCreateFlags flags_ = {},
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27537:61: note: no known conversion for argument 3 from ‘vk::DescriptorPoolSize’ to ‘uint32_t’ {aka ‘unsigned int’}
27537 | uint32_t poolSizeCount_ = {},
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27533:10: note: candidate: ‘constexpr vk::DescriptorPoolCreateInfo::DescriptorPoolCreateInfo(const vk::DescriptorPoolCreateInfo&)’
27533 | struct DescriptorPoolCreateInfo
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:27533:10: note: candidate expects 1 argument, 3 provided
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp: In function ‘void ggml_vk_submit(vk_context*, vk::Fence)’:
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:657:40: error: assignment of read-only member ‘vk::TimelineSemaphoreSubmitInfo::sType’
657 | tl_submit_infos[idx].sType = vk::StructureType::eTimelineSemaphoreSubmitInfo;
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp: In function ‘void ggml_vk_queue_cleanup(ggml_backend_vk_context*, vk_queue&)’:
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:793:48: error: no matching function for call to ‘vk::Device::resetCommandPool(vk::CommandPool&)’
793 | ctx->device->device.resetCommandPool(q.pool);
| ^
In file included from /home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:7:
/usr/include/vulkan/vulkan.hpp:18160:42: note: candidate: ‘template vk::ResultValueType::type vk::Device::resetCommandPool(vk::CommandPool, vk::CommandPoolResetFlags, const Dispatch&) const’
18160 | typename ResultValueType::type resetCommandPool( VULKAN_HPP_NAMESPACE::CommandPool commandPool, VULKAN_HPP_NAMESPACE::CommandPoolResetFlags flags, Dispatch const &d = VULKAN_HPP_DEFAULT_DISPATCHER ) const;
| ^~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:18160:42: note: template argument deduction/substitution failed:
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:793:48: note: candidate expects 3 arguments, 1 provided
793 | ctx->device->device.resetCommandPool(q.pool);
| ^
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp: In function ‘void ggml_vk_print_gpu_info(size_t)’:
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:1336:60: error: request for member ‘data’ in ‘props2.vk::PhysicalDeviceProperties2::properties.vk::PhysicalDeviceProperties::deviceName’, which is of non-class type ‘char [256]’
1336 | std::string device_name = props2.properties.deviceName.data();
| ^~~~
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp: In function ‘void ggml_vk_instance_init()’:
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:1377:105: error: no matching function for call to ‘vk::InstanceCreateInfo::InstanceCreateInfo(vk::InstanceCreateFlags, vk::ApplicationInfo*, std::vector<const char*>&, std::vector<const char*>&)’
1377 | vk::InstanceCreateInfo instance_create_info(vk::InstanceCreateFlags{}, &app_info, layers, extensions);
| ^
In file included from /home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:7:
/usr/include/vulkan/vulkan.hpp:38981:5: note: candidate: ‘vk::InstanceCreateInfo::InstanceCreateInfo(const VkInstanceCreateInfo&)’
38981 | InstanceCreateInfo( VkInstanceCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:38981:5: note: candidate expects 1 argument, 4 provided
/usr/include/vulkan/vulkan.hpp:38961:26: note: candidate: ‘constexpr vk::InstanceCreateInfo::InstanceCreateInfo(vk::InstanceCreateFlags, const vk::ApplicationInfo*, uint32_t, const char* const*, uint32_t, const char* const*)’
38961 | VULKAN_HPP_CONSTEXPR InstanceCreateInfo( VULKAN_HPP_NAMESPACE::InstanceCreateFlags flags_ = {},
| ^~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:38963:55: note: no known conversion for argument 3 from ‘std::vector<const char*>’ to ‘uint32_t’ {aka ‘unsigned int’}
38963 | uint32_t enabledLayerCount_ = {},
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:38959:10: note: candidate: ‘constexpr vk::InstanceCreateInfo::InstanceCreateInfo(const vk::InstanceCreateInfo&)’
38959 | struct InstanceCreateInfo
| ^~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:38959:10: note: candidate expects 1 argument, 4 provided
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:1392:9: error: no match for ‘operator=’ (operand types are ‘vk::ValidationFeaturesEXT’ and ‘’)
1392 | };
| ^
In file included from /home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:7:
/usr/include/vulkan/vulkan.hpp:60037:51: note: candidate: ‘vk::ValidationFeaturesEXT& vk::ValidationFeaturesEXT::operator=(const vk::ValidationFeaturesEXT&)’
60037 | VULKAN_HPP_NAMESPACE::ValidationFeaturesEXT & operator=( VULKAN_HPP_NAMESPACE::ValidationFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~
/usr/include/vulkan/vulkan.hpp:60037:114: note: no known conversion for argument 1 from ‘’ to ‘const vk::ValidationFeaturesEXT&’
60037 | VULKAN_HPP_NAMESPACE::ValidationFeaturesEXT & operator=( VULKAN_HPP_NAMESPACE::ValidationFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT
| ^
/usr/include/vulkan/vulkan.hpp:60048:28: note: candidate: ‘vk::ValidationFeaturesEXT& vk::ValidationFeaturesEXT::operator=(const VkValidationFeaturesEXT&)’
60048 | ValidationFeaturesEXT& operator=( VkValidationFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~
/usr/include/vulkan/vulkan.hpp:60048:71: note: no known conversion for argument 1 from ‘’ to ‘const VkValidationFeaturesEXT&’
60048 | ValidationFeaturesEXT& operator=( VkValidationFeaturesEXT const & rhs ) VULKAN_HPP_NOEXCEPT
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp: In function ‘void ggml_vk_init(ggml_backend_vk_context*, size_t)’:
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:1483:13: error: ‘PhysicalDeviceMaintenance4Properties’ is not a member of ‘vk’; did you mean ‘PhysicalDeviceMaintenance3Properties’?
1483 | vk::PhysicalDeviceMaintenance4Properties props4;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PhysicalDeviceMaintenance3Properties
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:1488:37: error: ‘props4’ was not declared in this scope; did you mean ‘props3’?
1488 | subgroup_props.pNext = &props4;
| ^~~~~~
| props3
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:1498:96: error: ‘props4’ was not declared in this scope; did you mean ‘props3’?
1498 | ctx->device->max_memory_allocation_size = std::min(props3.maxMemoryAllocationSize, props4.maxBufferSize);
| ^~~~~~
| props3
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:1578:64: error: request for member ‘data’ in ‘((std::__shared_ptr_access<vk_device, __gnu_cxx::_S_atomic, false, false>)(& ctx->ggml_backend_vk_context::device))->std::__shared_ptr_access<vk_device, __gnu_cxx::_S_atomic, false, false>::operator->()->vk_device::properties.vk::PhysicalDeviceProperties::deviceName’, which is of non-class type ‘char [256]’
1578 | ctx->device->name = ctx->device->properties.deviceName.data();
| ^~~~
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:1585:9: error: no match for ‘operator=’ (operand types are ‘vk::DeviceCreateInfo’ and ‘’)
1585 | };
| ^
In file included from /home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:7:
/usr/include/vulkan/vulkan.hpp:29146:46: note: candidate: ‘vk::DeviceCreateInfo& vk::DeviceCreateInfo::operator=(const vk::DeviceCreateInfo&)’
29146 | VULKAN_HPP_NAMESPACE::DeviceCreateInfo & operator=( VULKAN_HPP_NAMESPACE::DeviceCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~
/usr/include/vulkan/vulkan.hpp:29146:104: note: no known conversion for argument 1 from ‘’ to ‘const vk::DeviceCreateInfo&’
29146 | VULKAN_HPP_NAMESPACE::DeviceCreateInfo & operator=( VULKAN_HPP_NAMESPACE::DeviceCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT
| ^
/usr/include/vulkan/vulkan.hpp:29157:23: note: candidate: ‘vk::DeviceCreateInfo& vk::DeviceCreateInfo::operator=(const VkDeviceCreateInfo&)’
29157 | DeviceCreateInfo& operator=( VkDeviceCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT
| ^~~~~~~~
/usr/include/vulkan/vulkan.hpp:29157:61: note: no known conversion for argument 1 from ‘’ to ‘const VkDeviceCreateInfo&’
29157 | DeviceCreateInfo& operator=( VkDeviceCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp: In function ‘void ggml_vk_get_device_description(int, char, size_t)’:
/home/qianty/CodeSpace/llama/test/llama.cpp/ggml-vulkan.cpp:5098:68: error: request for member ‘data’ in ‘props.vk::PhysicalDeviceProperties::deviceName’, which is of non-class type ‘char [256]’
5098 | snprintf(description, description_size, "%s", props.deviceName.data());
| ^~~~
make[2]: *** [CMakeFiles/ggml.dir/build.make:132: CMakeFiles/ggml.dir/ggml-vulkan.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1054: CMakeFiles/ggml.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 6%] Built target json-schema-to-grammar
make: *** [Makefile:146: all] Error 2
The text was updated successfully, but these errors were encountered: