未安装卡的AMD和NVIDIA OpenCL内核的离线编译 [英] Offline compilation for AMD and NVIDIA OpenCL Kernels without cards installed
问题描述
我试图找到一种无需安装图形卡即可执行OpenCL内核的脱机编译的方法.我已经安装了SDK.
I was trying to figure out a way to perform offline compilation of OpenCL kernels without installing Graphics cards. I have installed the SDK's.
在没有为NVIDIA或AMD两者中的任何一个安装图形卡的情况下,任何人都有编译OpenCL内核的经验吗?
Does anyone has any experience with compiling OpenCL Kernels without having the graphics cards installed for both any one of them NVIDIA or AMD.
I had asked a similar question on AMD forums
(http://devgurus.amd.com/message/1284379).
NVIDIA forums for long are in accessible so couldn't get any help from there.
谢谢
推荐答案
AMD具有OpenCL扩展名,用于编译系统中不存在的设备的二进制文件.该扩展名为cl_amd_offline_devices.创建上下文时,传递属性CL_CONTEXT_OFFLINE_DEVICES_AMD,并且报告所有AMD支持的设备,这些设备可用于创建二进制文件,就像它们存在于系统中一样.
AMD has an OpenCL extension for compiling binaries for devices that are not present on the system. The extension is called cl_amd_offline_devices. Pass the property CL_CONTEXT_OFFLINE_DEVICES_AMD when creating a context and all of AMDs supported devices are reported and can be used to create binaries as if they were present on the system.
这篇关于未安装卡的AMD和NVIDIA OpenCL内核的离线编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!