6 Commits

Author SHA1 Message Date
Zichen Lu
fbffdaa174
[MLIR][GPU] Update serializeToObject to use SerializedObject wrapper and include ISA compiler logs (#176697)
This PR makes the compilation log from ISA compiler available to users
by returning it as part of the `gpu::ObjectAttr` properties, following
the existing pattern like `LLVMIRToISATimeInMs`.

Currently, the compiler log (which contains useful information such as
spill statistics when --verbose is passed) is only accessible in debug
builds via `LLVM_DEBUG`. However, there are good reasons to make this
information available in release builds as well:

1. Both `ptxas` and `libnvptxcompiler` are publicly available
tools/libraries distributed with the CUDA Toolkit. The `--verbose` flag
and its output are documented public features, not internal debug
information.
2. The verbose output provides valuable insights for users.

A new `SerializedObject` class is used to carry the metadata alongside
the binary when returning from `serializeObject`.
2026-01-30 12:56:20 +01:00
Ivan Butygin
c7af990cb7
Reland [mlir][gpu] Use SmallString, FailureOr and StringRef in module-to-binary infra (NFC) (#172390)
Reland https://github.com/llvm/llvm-project/pull/172284

`MCAsmParser` expects buffer to be null terminated, had to use
`getMemBufferCopy` which is unfortunate.
2025-12-17 16:42:54 +03:00
Ivan Butygin
4c7d765d05
Revert "[mlir][gpu] Use SmallString, FailureOr and StringRef in module-to-binary infra (NFC) (#172284)" (#172386)
This reverts commit c8b8b2f1f9ced8db1458dfdf1ea6a15152c695f0.

broke the bot
2025-12-16 00:06:33 +00:00
Ivan Butygin
c8b8b2f1f9
[mlir][gpu] Use SmallString, FailureOr and StringRef in module-to-binary infra (NFC) (#172284)
Instead of `std::string`, `std::optional` and `const std::string&`.
2025-12-16 02:43:08 +03:00
Ivan Butygin
b3ec8be22b
[mlir][gpu] Expose some utility functions from gpu-to-binary infra (#172205)
For people who do not want to use a single monolithic pass.
2025-12-15 13:39:19 +03:00
Sang Ik Lee
baae949f19
[MLIR][GPU][XeVM] Add XeVM target and XeVM dialect integration tests. (#148286)
As part of XeVM dialect upsteaming, covers remaining parts required for XeVM dialect integration and testing.
It has two high level components
- XeVM target and serialization support
- XeVM dialect integration tests using level zero runtime

Co-Authored-by: Artem Kroviakov <artem.kroviakov@intel.com>
2025-08-13 13:17:10 -07:00