[Mlir-commits] [mlir] [ROCDL] Pass `amd_code_object_version` when serializing ROCDL gpu module (PR #108874)

Fabian Mora llvmlistbot at llvm.org
Mon Sep 16 15:55:30 PDT 2024


================
@@ -71,14 +71,17 @@ class SerializeGPUModuleBase : public LLVM::ModuleToObject {
   virtual std::optional<SmallVector<std::unique_ptr<llvm::Module>>>
   loadBitcodeFiles(llvm::Module &module) override;
 
-  /// Adds `oclc` control variables to the LLVM module.
+  /// Determines required Device Libraries and adds `oclc` control variables to
+  /// the LLVM Module if needed. Also sets
+  /// `amdhsa_code_object_version` module flag
----------------
fabianmcg wrote:

Also, could you add  a sentence here saying that `amdhsa_code_object_version` is equal to the ABI value, and that it uses `llvm::Module::Error` to set the flag.

https://github.com/llvm/llvm-project/pull/108874


More information about the Mlir-commits mailing list