我正在尝试英特尔办公室网站上的oneAPI:https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/programming-interface/example-compilation.html
我已经完成了第一步“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'
我想有一些兼容性问题,但我不知道如何修复。谢谢!
发布于 2022-01-03 04:54:46
问题可能与您在系统中的GCC版本有关,请从下面的链接intel.com/content/www/us/en/developer/articles/…中查看DPCPP编译器的系统要求。支持编译器所基于的分布式库的最低版本: GCC - 7.3.0,BINUTILS-2.3,GLIBC-2.27
https://stackoverflow.com/questions/70490939
复制相似问题