tensorflow / mlir

"Multi-Level Intermediate Representation" Compiler Infrastructure
1.73k stars 257 forks source link

can toy language generate cuda code? #321

Open MingliSun opened 4 years ago

MingliSun commented 4 years ago

mlir-cuda-runner has a problem,and its three testes is not passed.How to generate cuda code in Toy language?

joker-eph commented 4 years ago

There is no GPU path from Toy at the moment. If mlir-cuda-runner is failing in your environment, it would be unlikely a Toy path would work.

joker-eph commented 4 years ago

did you get mlir-cuda-runner to work for you in the past? Do you know if this is a recent failure? (it is working for us internally)

marbre commented 4 years ago

Are there any plans to add an GPU path tutorial/example? Maybe also in a similar fashion to https://github.com/bondhugula/mlir/blob/hop/g3doc/HighPerfCodeGen.md?

ftynse commented 4 years ago

Are there any plans to add an GPU path tutorial/example?

GPU path is pretty much work-in-progress, there is no robust lowering from arbitrary loops to GPU kernels. We may consider it for an updated version of the tutorial in future.