diff --git a/include/ur_print.hpp b/include/ur_print.hpp index 2a4851e770..5c240f2c3e 100644 --- a/include/ur_print.hpp +++ b/include/ur_print.hpp @@ -204,122 +204,122 @@ inline ur_result_t printTagged(std::ostream &os, const void *ptr, ur_exp_peer_in } // namespace ur::details -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_function_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_structure_type_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_result_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_base_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_base_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_rect_offset_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_rect_region_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_device_init_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_loader_config_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_code_location_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_adapter_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_adapter_backend_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_platform_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_api_version_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_platform_native_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_platform_backend_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_device_binary_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_device_type_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_device_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_device_affinity_domain_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_device_partition_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_device_partition_property_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_device_partition_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_device_fp_capability_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_device_mem_cache_type_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_device_local_mem_type_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_device_exec_capability_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_device_native_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_memory_order_capability_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_memory_scope_capability_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_device_usm_access_capability_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_context_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_context_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_context_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_context_native_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_mem_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_mem_type_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_mem_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_image_channel_order_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_image_channel_type_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_image_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_image_format_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_image_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_buffer_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_buffer_channel_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_buffer_alloc_location_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_buffer_region_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_buffer_create_type_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_mem_native_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_sampler_filter_mode_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_sampler_addressing_mode_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_sampler_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_sampler_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_sampler_native_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_usm_host_mem_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_usm_device_mem_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_usm_pool_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_usm_type_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_usm_alloc_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_usm_advice_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_usm_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_usm_host_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_usm_device_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_usm_pool_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_usm_pool_limits_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_usm_pool_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_virtual_mem_granularity_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_virtual_mem_access_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_virtual_mem_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_physical_mem_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_physical_mem_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_program_metadata_type_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_program_metadata_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_program_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_program_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_program_build_status_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_program_binary_type_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_program_build_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_specialization_constant_info_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_program_native_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_arg_value_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_arg_local_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_kernel_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_kernel_group_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_kernel_sub_group_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_kernel_cache_config_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_kernel_exec_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_arg_pointer_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_exec_info_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_arg_sampler_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_arg_mem_obj_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_native_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_queue_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_queue_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_queue_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_queue_index_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_queue_native_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_queue_native_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_command_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_event_status_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_event_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_profiling_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_event_native_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_execution_info_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_map_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_usm_migration_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_exp_image_copy_flag_t value); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_file_descriptor_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_win32_handle_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_sampler_mip_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_sampler_addr_modes_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_interop_mem_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_interop_semaphore_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_layered_image_properties_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_command_buffer_desc_t params); -UR_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ur_exp_peer_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_function_t value); +inline std::ostream &operator<<(std::ostream &os, ur_structure_type_t value); +inline std::ostream &operator<<(std::ostream &os, ur_result_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_base_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_base_desc_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_rect_offset_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_rect_region_t params); +inline std::ostream &operator<<(std::ostream &os, ur_device_init_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_loader_config_info_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_code_location_t params); +inline std::ostream &operator<<(std::ostream &os, ur_adapter_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_adapter_backend_t value); +inline std::ostream &operator<<(std::ostream &os, ur_platform_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_api_version_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_platform_native_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_platform_backend_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_device_binary_t params); +inline std::ostream &operator<<(std::ostream &os, ur_device_type_t value); +inline std::ostream &operator<<(std::ostream &os, ur_device_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_device_affinity_domain_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_device_partition_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_device_partition_property_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_device_partition_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_device_fp_capability_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_device_mem_cache_type_t value); +inline std::ostream &operator<<(std::ostream &os, ur_device_local_mem_type_t value); +inline std::ostream &operator<<(std::ostream &os, ur_device_exec_capability_flag_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_device_native_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_memory_order_capability_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_memory_scope_capability_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_device_usm_access_capability_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_context_flag_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_context_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_context_info_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_context_native_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_mem_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_mem_type_t value); +inline std::ostream &operator<<(std::ostream &os, ur_mem_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_image_channel_order_t value); +inline std::ostream &operator<<(std::ostream &os, ur_image_channel_type_t value); +inline std::ostream &operator<<(std::ostream &os, ur_image_info_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_image_format_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_image_desc_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_buffer_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_buffer_channel_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_buffer_alloc_location_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_buffer_region_t params); +inline std::ostream &operator<<(std::ostream &os, ur_buffer_create_type_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_mem_native_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_sampler_filter_mode_t value); +inline std::ostream &operator<<(std::ostream &os, ur_sampler_addressing_mode_t value); +inline std::ostream &operator<<(std::ostream &os, ur_sampler_info_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_sampler_desc_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_sampler_native_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_usm_host_mem_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_usm_device_mem_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_usm_pool_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_usm_type_t value); +inline std::ostream &operator<<(std::ostream &os, ur_usm_alloc_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_usm_advice_flag_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_usm_desc_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_usm_host_desc_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_usm_device_desc_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_usm_pool_desc_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_usm_pool_limits_desc_t params); +inline std::ostream &operator<<(std::ostream &os, ur_usm_pool_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_virtual_mem_granularity_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_virtual_mem_access_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_virtual_mem_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_physical_mem_flag_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_physical_mem_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_program_metadata_type_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_program_metadata_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_program_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_program_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_program_build_status_t value); +inline std::ostream &operator<<(std::ostream &os, ur_program_binary_type_t value); +inline std::ostream &operator<<(std::ostream &os, ur_program_build_info_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_specialization_constant_info_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_program_native_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_arg_value_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_arg_local_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_kernel_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_kernel_group_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_kernel_sub_group_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_kernel_cache_config_t value); +inline std::ostream &operator<<(std::ostream &os, ur_kernel_exec_info_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_arg_pointer_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_exec_info_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_arg_sampler_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_arg_mem_obj_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_kernel_native_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_queue_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_queue_flag_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_queue_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_queue_index_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_queue_native_desc_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_queue_native_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_command_t value); +inline std::ostream &operator<<(std::ostream &os, ur_event_status_t value); +inline std::ostream &operator<<(std::ostream &os, ur_event_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_profiling_info_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_event_native_properties_t params); +inline std::ostream &operator<<(std::ostream &os, ur_execution_info_t value); +inline std::ostream &operator<<(std::ostream &os, ur_map_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_usm_migration_flag_t value); +inline std::ostream &operator<<(std::ostream &os, ur_exp_image_copy_flag_t value); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_file_descriptor_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_win32_handle_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_sampler_mip_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_sampler_addr_modes_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_interop_mem_desc_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_interop_semaphore_desc_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_layered_image_properties_t params); +inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_exp_command_buffer_desc_t params); +inline std::ostream &operator<<(std::ostream &os, ur_exp_peer_info_t value); /////////////////////////////////////////////////////////////////////////////// /// @brief Print operator for the ur_function_t type @@ -15872,7 +15872,7 @@ namespace ur::extras { /// - ::UR_RESULT_ERROR_INVALID_ENUMERATION /// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER /// - `NULL == params` -UR_APIEXPORT inline ur_result_t UR_APICALL printFunctionParams(std::ostream &os, ur_function_t function, const void *params) { +inline ur_result_t UR_APICALL printFunctionParams(std::ostream &os, ur_function_t function, const void *params) { if (!params) { return UR_RESULT_ERROR_INVALID_NULL_POINTER; } diff --git a/scripts/templates/print.hpp.mako b/scripts/templates/print.hpp.mako index 7c1034089b..f79a6ab87a 100644 --- a/scripts/templates/print.hpp.mako +++ b/scripts/templates/print.hpp.mako @@ -156,9 +156,9 @@ template inline ${x}_result_t printTagged(std::ostream &os, const v %for spec in specs: %for obj in spec['objects']: %if re.match(r"enum", obj['type']): - ${X}_APIEXPORT inline std::ostream &operator<<(std::ostream &os, ${th.make_enum_name(n, tags, obj)} value); + inline std::ostream &operator<<(std::ostream &os, ${th.make_enum_name(n, tags, obj)} value); %elif re.match(r"struct", obj['type']): - ${X}_APIEXPORT inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const ${obj['type']} ${th.make_type_name(n, tags, obj)} params); + inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const ${obj['type']} ${th.make_type_name(n, tags, obj)} params); %endif %endfor # obj in spec['objects'] %endfor @@ -443,7 +443,7 @@ namespace ${x}::extras { /// - ::${X}_RESULT_ERROR_INVALID_ENUMERATION /// - ::${X}_RESULT_ERROR_INVALID_NULL_POINTER /// - `NULL == params` -${X}_APIEXPORT inline ${x}_result_t ${X}_APICALL printFunctionParams(std::ostream &os, ur_function_t function, const void *params) { +inline ${x}_result_t ${X}_APICALL printFunctionParams(std::ostream &os, ur_function_t function, const void *params) { if (!params) { return ${X}_RESULT_ERROR_INVALID_NULL_POINTER; }