我想在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?我怎么才能让它起作用?
发布于 2017-04-05 14:06:43
不,您应该避免从OpenCL内核中包含任何系统头。
只需使用uchar即可。如果你需要的话你可以typedef uchar uint8_t;。
https://stackoverflow.com/questions/43233205
复制相似问题