llvm - Is there a general binary intermediate representation for OpenCL kernel programming? -
as understood, opencl uses modified c language (by adding keywords __global) general purpose defining kernel function. , doing front-end inside f# language, has code quotation feature can meta programming (you can think kind of reflection tech). know if there general binary intermediate representation kernel instead of c source file.
i know cuda supports llvm ir binary intermediate representation, can create kernel programmatically, , want same thing opencl. document says binary format not specified, each implementation can use own binary format. there general purpose ir can generated program , can run nvidia, amd, intel implementation of opencl?
thansk.
no, not yet. khronos working on spir (the spec still provisional), become this. far can tell, none of major implementations support yet. unless want bet project on success , possibly delay project year or two, should start generating code in c dialect.
Comments
Post a Comment