intel / linux-npu-driver

Intel® NPU (Neural Processing Unit) Driver
MIT License
189 stars 18 forks source link

Fix compilation failure with GCC-14 #30

Closed saininav closed 5 months ago

saininav commented 6 months ago

umd/level_zero_driver/core/source/event/event.cpp:65:31: error: 'remove_if' is not a member of 'std'; did you mean 'remove_cv'? | 65 | associatedJobs.erase(std::remove_if(associatedJobs.begin(), | | ^~~~~ | | remove_cv

| umd/vpu_driver/source/command/vpu_command.cpp: In member function 'void VPU::VPUCommand::appendAssociateBufferObject(VPU::VPUBufferObject*)': | umd/vpu_driver/source/command/vpu_command.cpp:126:20: error: 'find' is not a member of 'std'; did you mean 'bind'? | 126 | auto it = std::find(bufferObjects.begin(), bufferObjects.end(), bo); | | ^~~~ | | bind

| umd/vpu_driver/source/command/vpu_command_buffer.cpp: In member function 'bool VPU::VPUCommandBuffer::addCommand(VPU::VPUCommand*, uint64_t&, uint64_t&)': | umd/vpu_driver/source/command/vpu_command_buffer.cpp:185:24: error: 'find' is not a member of 'std'; did you mean 'bind'? | 185 | auto it = std::find(bufferHandles.begin(), bufferHandles.end(), bo->getHandle()); | | ^~~~ | | bind

| umd/level_zero_driver/ext/source/graph/elf_parser.cpp:301:32: error: 'max_element' is not a member of 'std'; did you mean 'tuple_element'? | 301 | std::max_element(stride_begin + TENSOR_5D_STRIDE_C, stride_end)); | | ^~~ | | tuple_element | umd/level_zero_driver/ext/source/graph/elf_parser.cpp:315:37: error: 'max_element' is not a member of 'std'; did you mean 'tuple_element'? | 315 | auto max_stride_val = *std::max_element(stride_begin + TENSOR_4D_STRIDE_C, stride_end); | | ^~~

| umd/level_zero_driver/tools/source/metrics/metric.cpp: In member function 'void L0::MetricContext::deactivateMetricGroups(int)': | umd/level_zero_driver/tools/source/metrics/metric.cpp:275:38: error: 'remove_if' is not a member of 'std'; did you mean 'remove_cv'? | 275 | activatedMetricGroups.erase(std::remove_if(activatedMetricGroups.begin(), | | ^~~~~ | | remove_cv