How to run my CUDA application on ATI or Intel card in software mode?

后端 未结 2 1708
悲&欢浪女
悲&欢浪女 2021-01-23 16:15

I want to be able to run my software in GPU mode on NVidia and in CPU (sofware) mode on ATI or Intel. How can I achieve this?

It\'s the same like PhysX works.

C

2条回答
  •  鱼传尺愫
    2021-01-23 16:44

    converting this to an answer:

    there's a software called GPU Ocelot that will figure out what hardware to run the gpu code on at runtime: http://code.google.com/p/gpuocelot/

    run all your calls through Ocelot and you should be good to go.

    From the homepage:

    Ocelot is a modular dynamic compilation framework for heterogeneous system, providing various backend targets for CUDA programs and analysis modules for the PTX virtual instruction set. Ocelot currently allows CUDA programs to be executed on NVIDIA GPUs, AMD GPUs, and x86-CPUs at full speed without recompilation.

提交回复
热议问题