Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does NVidia support OpenCL SPIR?

I am wondering that whether nvidia supports spir backend or not? if yes, i couldn't find any document and sample example about that. but if not, is there a any way to work spir backend onto nvidia gpus? thanks in advance

like image 898
grypp Avatar asked Feb 26 '14 20:02

grypp


People also ask

What version of OpenCL does Nvidia support?

NVIDIA supports OpenCL 3.0 on Maxwell and later GPUs.

Does Nvidia use CUDA or OpenCL?

CUDA and OpenCL offer two different interfaces for programming GPUs. OpenCL is an open standard that can be used to program CPUs, GPUs, and other devices from different vendors, while CUDA is specific to NVIDIA GPUs.

Does my graphics card support OpenCL?

All CPUs support OpenCL 1.2 only. NVIDIA: NVIDIA GeForce 8600M GT, GeForce 8800 GT, GeForce 8800 GTS, GeForce 9400M, GeForce 9600M GT, GeForce GT 120, GeForce GT 130, ATI Radeon 4850, Radeon 4870, and likely more are supported. Apple (MacOS X only is supported)


1 Answers

Since SPIR builds on top of OpenCL version 1.2, and so far Nvidia has not made any OpenCL 1.2 drivers available, it is not possible to use SPIR with Nvidia GPUs. As mentioned in the comments, Nvidia has made PTX available as intermediate language (also based on LLVM IR). One could consider translating SPIR into PTX but I don't know how realistic that would be.

Other vendors such as AMD and Intel are already showing support for SPIR. This can be verified by querying the CL_DEVICE_EXTENSIONS with the clGetDeviceInfo OpenCL API. If the result string contains cl_khr_spir, the driver supports SPIR.

like image 58
Erik Duymelinck Avatar answered Dec 05 '22 15:12

Erik Duymelinck