Is there an offlineOpenCL compiler (for NVIDIA graphics cards)?

时间:2016-04-04 17:00:51

标签: opencl gpgpu nvidia

The normal way to run an OpenCL program is to include the openCL kernel that is compiled at runtime (online compilation).

But I've seen examples of compiling OpenCL to binary before, called offline compilation. I'm aware of the disadvantages (reducing compatibility across hardware).

There used to be an offline compiler at http://www.fixstars.com/en/ but it does not seems to be available anymore.

So is there an offline compiler for OpenCL available, in particular for NVIDIA-based cards?

1 个答案:

答案 0 :(得分:0)

有人建议NVidia的CUDA SDK中的nvcc.exe可以用

编译.cl文件
<ul>
  <li>
    <a href="{{ server.URI }}products/">{{ langs.Products }}Menu</a>
    <ul>
      <li>
        <a href="">menu</a>
        <ul>
          <li>
            <a href="">menu</a>
          </li>
          <li>
            <a href="">menu</a>
          </li>
          <li>
            <a href="">menu</a>
          </li>
          <li>
            <a href="">menu</a>
            <ul>
              <li>
                <a href="">menu</a>
              </li>
              <li>
                <a href="">menu</a>
              </li>
              <li>
                <a href="">menu</a>
              </li>
              <li>
                <a href="">menu</a>
              </li>
            </ul>
          </li>
        </ul>
      </li>
    </ul>
  </li>
  <li>
    <a href="{{ server.URI }}services/">{{ langs.Services }}</a>
  </li>
  <li>
    <a href="{{ server.URI }}news/">{{ langs.News }}</a>
  </li>
  <li>
    <a href="{{ server.URI }}about/">{{ langs.About }}</a>
  </li>
  <li>
    <a href="{{ server.URI }}contact/">{{ langs.Contact }}</a>
  </li>
</ul>

...但它说至少在Windows上缺少cl.exe。不过,这可能值得一试:http://clcc.sourceforge.net/

以及: