0

我正在尝试来自英特尔办公室网站的 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'

我想有一些兼容性问题,但我不知道如何解决。谢谢!

4

1 回答 1

0

问题可能与您系统中的 GCC 版本有关,请从以下链接中查看 DPCPP 编译器的系统要求 intel.com/content/www/us/en/developer/articles/...“支持的最低要求编译器所基于的分布式库版本:GCC - 7.3.0、BINUTILS- 2.30、GLIBC-2.27"

于 2022-01-03T04:54:46.570 回答