gpt4 book ai didi

c++ - 在 Intel Iris Graphics 6100 (MBP 2015) 上实现 OpenCL 的 OSX vector 宽度

转载 作者:行者123 更新时间:2023-11-30 05:23:08 25 4
gpt4 key购买 nike

According to Wikipedia, the Iris Graphics 6100 has 48 execution units (EU) with each having a pair of 128 bit FPUs.所以每个 EU 都应该支持 8 种浮点类型的 vector 。当轮询设备以获取 GPU 的首选 vector 宽度时,除 double 类型外,每种类型都显示为 1。结果为 0。这是预期的行为,因为不支持 double 。 CPU 正确返回所有信息。所有 48 个 GPU EU 也被识别为存在。

这只是 Apple 实现的 clGetDeviceInfo 的一个错误吗?它至少应该输出 char vector 的首选宽度大于 int vector 。但他们都返回 1。

驱动为最新版本(2016 年 8 月 29 日)。

编辑:

clGetDeviceInfo(devices[j], CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT, sizeof(maxWidth), &maxWidth, NULL);

clGetDeviceInfo(devices[j], CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT, sizeof(maxWidth), &maxWidth, NULL);

对于 GPU 上的所有类型,两者都返回 1。

CPU 为 Char、Short、Int/Float 返回 16、8、4。

最佳答案

在 Intel GEN Graphics 上,浮点 vector 的首选 vector 宽度为 4,如 float4。对于某些内核,float8 有时是有意义的。所以我认为这是 MacOSX 驱动程序的问题。

关于c++ - 在 Intel Iris Graphics 6100 (MBP 2015) 上实现 OpenCL 的 OSX vector 宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39342566/

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