首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何修复oneAPI代码上的补错

如何修复oneAPI代码上的补错
EN

Stack Overflow用户
提问于 2021-12-27 01:20:34
回答 1查看 243关注 0票数 0

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

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

EN

回答 1

Stack Overflow用户

发布于 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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70490939

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档