首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在opencl中支持stdint.h吗?

在opencl中支持stdint.h吗?
EN

Stack Overflow用户
提问于 2017-04-05 13:52:02
回答 1查看 698关注 0票数 1

我想在opencl中使用uint8_t数据类型。我刚才声明要检查是否支持它,但是它给出了一些关于stdint.h的错误。C文件在运行时编译.cl代码并获得此错误

Compilation started In file included from 1:1: In file included from /usr/include/stdint.h:25: In file included from /usr/include/features.h:399: /usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found Compilation failed

是机器错误还是openCL中不支持stdint.h?我怎么才能让它起作用?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-04-05 14:06:43

不,您应该避免从OpenCL内核中包含任何系统头。

只需使用uchar即可。如果你需要的话你可以typedef uchar uint8_t;

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

https://stackoverflow.com/questions/43233205

复制
相关文章

相似问题

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