• @mholiv
    link
    English
    161 month ago

    Kind of the opposite actually. PTX is in essence nvidia specific assembly. Just like how arm or x86_64 assembly are tied to arm and x86_64.

    At least with cuda there are efforts like zluda. Cuda is more like objective-c was on the mac. Basicly tied to platform but at least you could write a compiler for another target in theory.

    • @KingRandomGuy
      link
      English
      31 month ago

      IIRC Zluda does support compiling PTX. My understanding is that this is part of why Intel and AMD eventually didn’t want to support it - it’s not a great idea to tie yourself to someone else’s architecture you have no control or license to.

      OTOH, CUDA itself is just a set of APIs and their implementations on NVIDIA GPUs. Other companies can re-implement them. AMD has already done this with HIP.

    • @Knock_Knock_Lemmy_In
      link
      English
      11 month ago

      Ah, I hoped it was cross platform, more like Opencl. Thinking about it, a lower level language would be more platform specific.