我将 c6x.h 包含在 main.cpp 中以进行分析,但收到错误。
C6x.h:172:1:错误:'_int40_t'不命名类型
_int40_t _labs (_int40_t);
C6x.h:478:8:错误:'_cregister'不命名类型
extern __cregister volatile unsigned int amr;
谢谢
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我将 c6x.h 包含在 main.cpp 中以进行分析,但收到错误。
C6x.h:172:1:错误:'_int40_t'不命名类型
_int40_t _labs (_int40_t);
C6x.h:478:8:错误:'_cregister'不命名类型
extern __cregister volatile unsigned int amr;
谢谢
我明白了。 如果要从链接到 OpenCL C 内核的标准 C 函数调用这些函数、则无需包含"c6x.h"。 您只需调用它、C6000 C 编译器就会自动为您添加它们。
如果要直接从 OpenCL C 内核调用这些函数、则需要查看此页面以查看所需的函数是否受支持。 无需包含头文件。 downloads.ti.com/.../c66-intrinsics.html
如果要从 OpenCL C 内核获取周期计数、可以使用此处描述的扩展"__clock64()"函数 :downloads.ti.com/.../opencl-c-builtin-function-extensions.html
-元