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
相关问题
- The behavior of __CUDA_ARCH__ macro
- multidplyr : assign functions to cluster
- OpenCL:Why Pointer to a pointer cannot be passed a
- Parallel for loop over range of array indices in C
- AMD CPU versus Intel CPU openCL
相关文章
- How to use doMC under Windows or alternative paral
- Parallel while loop in R
- Does gfortran take advantage of DO CONCURRENT?
- Using Parallel Linq Extensions to union two sequen
- MPI and D: Linker Options
- Is there an existing solution for these particular
- SqlConnection closes unexpectedly inside using sta
- On a 64 bit machine, can I safely operate on indiv
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 theclGetDeviceInfo
OpenCL API. If the result string containscl_khr_spir
, the driver supports SPIR.