2017-04-05 110 views
0

我想在opencl中使用uint8_t数据类型。我刚刚宣布检查它是否被支持,但是它提供了有关stdint.h的一些错误。当运行编译.CL代码,并得到这个错误在opencl中支持stdint.h吗?

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

是它的一些机器故障或stdint.h的C文件不支持OpenCL的?我怎样才能使它工作?

回答

2

不,你应该避免在你的OpenCL内核中包含任何系统头文件。可以使用uchar代替。如果需要,您可以typedef uchar uint8_t;