[Mlir-commits] [mlir] [MLIR][AMDGPU] Switch to code object version 5 (PR #79144)

Saiyedul Islam llvmlistbot at llvm.org
Tue Jan 23 06:41:33 PST 2024


https://github.com/saiislam created https://github.com/llvm/llvm-project/pull/79144

As AMDGPU backend has moved to cov5 as default, mlir should also switch to it.

>From 385c0fa7b768d2073a27a3e68a15e840a7ac9858 Mon Sep 17 00:00:00 2001
From: Saiyedul Islam <Saiyedul.Islam at amd.com>
Date: Tue, 23 Jan 2024 08:38:27 -0600
Subject: [PATCH] [MLIR][AMDGPU] Switch to code object version 5

As AMDGPU backend has moved to cov5 as default, mlir
should also switch to it.
---
 mlir/lib/Target/LLVM/ROCDL/Target.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlir/lib/Target/LLVM/ROCDL/Target.cpp b/mlir/lib/Target/LLVM/ROCDL/Target.cpp
index a589e5cbbb6198..cdcef1d6b459c6 100644
--- a/mlir/lib/Target/LLVM/ROCDL/Target.cpp
+++ b/mlir/lib/Target/LLVM/ROCDL/Target.cpp
@@ -238,7 +238,7 @@ void SerializeGPUModuleBase::addControlVariables(
   addControlVariable("__oclc_wavefrontsize64", wave64);
 
   llvm::Type *i32Ty = llvm::Type::getInt32Ty(module.getContext());
-  int abi = 400;
+  int abi = 500;
   abiVer.getAsInteger(0, abi);
   llvm::GlobalVariable *abiVersion = new llvm::GlobalVariable(
       module, i32Ty, true, llvm::GlobalValue::LinkageTypes::LinkOnceODRLinkage,



More information about the Mlir-commits mailing list