Is it possible to run CUDA on AMD GPUs?

后端 未结 6 1889
时光取名叫无心
时光取名叫无心 2020-12-07 15:32

I\'d like to extend my skill set into GPU computing. I am familiar with raytracing and realtime graphics(OpenGL), but the next generation of graphics and high performance co

相关标签:
6条回答
  • 2020-12-07 15:52

    Nope, you can't use CUDA for that. CUDA is limited to NVIDIA hardware. OpenCL would be the best alternative.

    Khronos itself has a list of resources. As does the StreamComputing.eu website. For your AMD specific resources, you might want to have a look at AMD's APP SDK page.

    Note that at this time there are several initiatives to translate/cross-compile CUDA to different languages and APIs. One such an example is HIP. Note however that this still does not mean that CUDA runs on AMD GPUs.

    0 讨论(0)
  • 2020-12-07 15:52

    As of 2019_10_10 I have NOT tested it, but there is the "GPU Ocelot" project

    http://gpuocelot.gatech.edu/

    that according to its advertisement tries to compile CUDA code for a variety of targets, including AMD GPUs.

    0 讨论(0)
  • 2020-12-07 15:55

    Yup. :) You can use Hipify to convert CUDA code very easily to HIP code which can be compiled run on both AMD and nVidia hardware pretty good. Here are some links

    GPUOpen very cool site by AMD that has tons of tools and software libraries to help with different aspects of GPU computing many of which work on both platforms

    HIP Github Repository that shows the process to hipify

    HIP GPUOpen Blog

    0 讨论(0)
  • 2020-12-07 15:59

    I think it is going to be possible soon in AMD FirePro GPU's, see press release here but support is coming 2016 Q1 for the developing tools:

    An early access program for the "Boltzmann Initiative" tools is planned for Q1 2016.

    0 讨论(0)
  • 2020-12-07 16:04

    You can't use CUDA for GPU Programming as CUDA is supported by NVIDIA devices only. If you want to learn GPU Computing I would suggest you to start CUDA and OpenCL simultaneously. That would be very much beneficial for you.. Talking about CUDA, you can use mCUDA. It doesn't require NVIDIA's GPU..

    0 讨论(0)
  • 2020-12-07 16:05

    You can run NVIDIA® CUDA™ code on Mac, and indeed on OpenCL 1.2 GPUs in general, using Coriander . Disclosure: I'm the author. Example usage:

    cocl cuda_sample.cu
    ./cuda_sample
    

    Result:

    0 讨论(0)
提交回复
热议问题