我正在尝试来自英特尔办公室网站的 oneAPI:https ://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/programming-interface/example-compilation.html
我已经完成了第 1 步“oneAPI 开发环境设置”并成功验证。
在第 2 步中,当我运行时dpcpp -I${MKLROOT}/include -c axpy.cpp -o axpy.o
,它报告了几个错误:
oneapi/compiler/2022.0.1/linux/bin-llvm/../include/sycl/CL/sycl/bit_cast.hpp:33:22: error: no member named 'is_trivially_copyable' in namespace 'std'
oneapi/compiler/2022.0.1/linux/bin-llvm/../include/sycl/CL/sycl/sycl_span.hpp:164:42: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'detail::remove_cv_t'
oneapi/compiler/2022.0.1/linux/bin-llvm/../include/sycl/CL/sycl/sycl_span.hpp:187:39: error: no template named 'is_array_v' in namespace 'std'; did you mean 'is_array'
我想有一些兼容性问题,但我不知道如何解决。谢谢!