Build started... 1>------ Build started: Project: vector-add-buffers, Configuration: Debug x64 ------ 1>src/vector-add-buffers.cpp(86,30): : error : call to 'isfinite' is ambiguous 1> auto is_finite_vec = isfinite(test_finite); 1> ^~~~~~~~ 1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.20348.0\ucrt\corecrt_math.h(405,32): note: candidate function [with _Ty = sycl::vec] 1> _Check_return_ inline bool isfinite(_In_ _Ty _X) throw() 1> ^ 1>F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/builtins.hpp(1189,29): note: candidate function [with T = sycl::vec, $1 = sycl::vec] 1>detail::common_rel_ret_t isfinite(T x) __NOEXC { 1> ^ 1>In file included from src/vector-add-buffers.cpp:22: 1>In file included from F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl.hpp:15: 1>In file included from F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/backend.hpp:26: 1>In file included from F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/queue.hpp:20: 1>F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/handler.hpp(973,5): : error : no matching function for call to object of type 'const (lambda at src/vector-add-buffers.cpp:83:31)' 1> KernelFunc(detail::Builder::getElement(detail::declptr())); 1> ^~~~~~~~~~ 1>F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/handler.hpp(1093,5): note: in instantiation of function template specialization 'sycl::handler::kernel_parallel_for<(lambda at src/vector-add-buffers.cpp:83:31), sycl::item<1, true>, (lambda at src/vector-add-buffers.cpp:83:31)>' requested here 1> kernel_parallel_for(KernelFunc); 1> ^ 1>F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/handler.hpp(895,7): note: in instantiation of function template specialization 'sycl::handler::kernel_parallel_for_wrapper<(lambda at src/vector-add-buffers.cpp:83:31), sycl::item<1, true>, (lambda at src/vector-add-buffers.cpp:83:31)>' requested here 1> kernel_parallel_for_wrapper(KernelFunc); 1> ^ 1>F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/handler.hpp(1319,5): note: in instantiation of function template specialization 'sycl::handler::parallel_for_lambda_impl' requested here 1> parallel_for_lambda_impl(NumWorkItems, std::move(KernelFunc)); 1> ^ 1>src/vector-add-buffers.cpp(83,7): note: in instantiation of function template specialization 'sycl::handler::parallel_for' requested here 1> h.parallel_for(num_items, [=](auto i) 1> ^ 1>src/vector-add-buffers.cpp(83,31): note: candidate template ignored: substitution failure [with i:auto = sycl::item<1, true>] 1> h.parallel_for(num_items, [=](auto i) 1> ^ 1>In file included from src/vector-add-buffers.cpp:22: 1>In file included from F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl.hpp:15: 1>In file included from F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/backend.hpp:26: 1>In file included from F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/queue.hpp:20: 1>F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/handler.hpp(973,5): : error : SYCL kernel cannot call an undefined function without SYCL_EXTERNAL attribute 1> KernelFunc(detail::Builder::getElement(detail::declptr())); 1> ^ 1>F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/handler.hpp(208,8): note: 'operator()' declared here 1> void operator()(TransformedArgType Arg) const { 1> ^ 1>F:\Intel\oneAPI\compiler\2022.0.3\windows\bin-llvm\..\include\sycl\CL/sycl/handler.hpp(970,3): note: called by 'kernel_parallel_for, 1, (lambda at src/vector-add-buffers.cpp:83:31)>, sycl::item<1, true>, sycl::detail::RoundedRangeKernel, 1, (lambda at src/vector-add-buffers.cpp:83:31)>>' 1> kernel_parallel_for(const KernelType &KernelFunc) { 1> ^ 1>3 errors generated. 1>Done building project "vector-add-buffers.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========