Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 OpenCL 编程的新手。设备、上下文和平台之间有什么区别?
平台是特定的 OpenCL 实现,例如 AMD APP、NVIDIA 或 Intel OpenCL。上下文是一个平台,该平台具有一组可用的设备。设备是执行计算的实际处理器(CPU、GPU 等)。
因此,如果您使用 Intel 平台,则该平台的有效上下文将包括 CPU 设备。而如果您使用 NVIDIA 平台,则有效的上下文将包括 NVIDIA GPU 设备。