0

In OpenCL the "PTX (like bytecode in java) to target converter" is an interpreter (like we have for bytecode in java) or an ahead-of-time assembler?

gpuguy
  • 4,607
  • 17
  • 67
  • 125

1 Answers1

1

Java is just-in-time compiled, not interpreted.

PTX is also compiled at loadtime.

Not sure about OpenCL, but CUDA can also store pre-compiled binaries for a given set of architectures in the executable (and JIT the rest). It is an option in the CUDA compiler.

Aleksandr Dubinsky
  • 22,436
  • 15
  • 82
  • 99