Virtual Function / Interface in OpenCL via IL?

Discussion created by gideonlee on Dec 22, 2009
Latest reply on Dec 23, 2009 by bpurnomo

I noticed that the new IL spec says that Virtual Function / Interface support is available on Evergreen and future GPUs.  Is there currently any backdoor/proprietary way to mix a little bit of IL into OpenCL kernel code so that kernels written in OpenCL can take advantage of that?

I'm sure there are many potential uses of mixing IL blocks into OpenCL. But interface is particularly useful because of the huge performance advantage over big switch-case blocks.  This is especially true if the code is ported from say an existing C++ or Java program.