2017-04-05 108 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;