diff --git a/kernels/common/device.cpp b/kernels/common/device.cpp index 499a6d48ac..ecc99463a3 100644 --- a/kernels/common/device.cpp +++ b/kernels/common/device.cpp @@ -78,6 +78,8 @@ namespace embree case CPU::XEON_PHI_KNIGHTS_MILL : frequency_level = FREQUENCY_SIMD512; break; case CPU::XEON_PHI_KNIGHTS_LANDING: frequency_level = FREQUENCY_SIMD512; break; case CPU::ARM: frequency_level = FREQUENCY_SIMD256; break; + default: + frequency_level = FREQUENCY_SIMD256; break; } /* initialize global state */ diff --git a/kernels/sycl/rthwif_embree_builder.cpp b/kernels/sycl/rthwif_embree_builder.cpp index 891f767415..13c16716d8 100644 --- a/kernels/sycl/rthwif_embree_builder.cpp +++ b/kernels/sycl/rthwif_embree_builder.cpp @@ -172,32 +172,10 @@ namespace embree return pvc; } - static bool hasDriverExtension(ze_driver_handle_t hDriver, const char* extensionName) - { - uint32_t count = 0; - ze_result_t result = ZeWrapper::zeDriverGetExtensionProperties(hDriver, &count, nullptr); - if (result != ZE_RESULT_SUCCESS) - return false; - - std::vector extensions(count); - result = ZeWrapper::zeDriverGetExtensionProperties(hDriver, &count, extensions.data()); - if (result != ZE_RESULT_SUCCESS) - return false; - - for (uint32_t i = 0; i < count; i++) - { - if (strncmp(extensionName, extensions[i].name, sizeof(extensions[i].name)) == 0) - return true; - } - return false; - } - void* rthwifAllocAccelBuffer(Device* embree_device, size_t bytes, sycl::device device, sycl::context context, sycl::usm::alloc alloc_type) { ze_context_handle_t hContext = sycl::get_native(context); ze_device_handle_t hDevice = sycl::get_native(device); - sycl::platform platform = device.get_platform(); - ze_driver_handle_t hDriver = sycl::get_native(platform); ze_rtas_device_ext_properties_t rtasProp = { ZE_STRUCTURE_TYPE_RTAS_DEVICE_EXT_PROPERTIES }; ze_device_properties_t devProp = { ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES, &rtasProp }; diff --git a/tutorials/common/imgui/imgui_widgets.cpp b/tutorials/common/imgui/imgui_widgets.cpp index 5095fca0f9..0a0aab026f 100644 --- a/tutorials/common/imgui/imgui_widgets.cpp +++ b/tutorials/common/imgui/imgui_widgets.cpp @@ -4439,7 +4439,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ // Clear input apply_new_text = ""; apply_new_text_length = 0; - STB_TEXTEDIT_CHARTYPE empty_string; + STB_TEXTEDIT_CHARTYPE empty_string = '\0'; stb_textedit_replace(state, &state->Stb, &empty_string, 0); } else if (strcmp(buf, state->InitialTextA.Data) != 0)