gpt4 book ai didi

compiler-errors - 错误: identifier “float3” is undefined; When running oclNbody demo on ATI card

转载 作者:行者123 更新时间:2023-12-02 10:50:48 26 4
gpt4 key购买 nike

我试图在ATI Radeo 4850卡上运行NVidia的OpenCL演示oclNbody.exe并收到以下错误消息:

Build Log: C:\DOCUME~1\DIMEDR~1\LOCALS~1\Temp\OCL27C.tmp.cl(33): error: identifier

      "float3" is undefined

REAL3 bodyBodyInteraction(REAL3 ai, REAL4 bi, REAL4 bj, REAL softeningSquared)

^



对于所有使用的REAL3数据类型,依此类推。我看过 OpenCL specification 1.1,它清楚地表明支持float3。我试图用float3更改REAL3,但是没有运气。我的卡有最新的驱动程序。使用Windows XP SP3操作系统

如何解决或解决此错误?

最佳答案

float3和其他3成分 vector 类型不属于OpenCL 1.0规范;它们已添加到1.1修订版中。根据AMD's driver compatibility page的说法,Radeon HD 4800卡仅支持OpenCL 1.0。

编译器尝试将float3解释为标识符的事实表明,它不是可识别的类型。

关于compiler-errors - 错误: identifier “float3” is undefined; When running oclNbody demo on ATI card,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6378813/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com