We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 049affc commit 6eda790Copy full SHA for 6eda790
1 file changed
third_party/xla/docs/tools.md
@@ -291,3 +291,17 @@ hlo-opt --emit-proto input.hlo
291
```
292
hlo-opt input.pbtxt or input.pb
293
294
+
295
+## [`ptx-opt`] Compiler LLVM Module down to PTX
296
297
+The tool will run LLVMIR optimization pipeline and then call CompileToPtx.
298
299
+```
300
+bazel run //xla/hlo/tools/ptx-opt -- --arch=9.0 <filename>
301
302
303
+The tool can also dump LLVMIR after every path.
304
305
306
+bazel run //xla/hlo/tools/ptx-opt -- --arch=9.0 --xla_dump_to=<path> --xla_gpu_dump_llvmir <filename>
307
0 commit comments