Skip to content

Removed Hardcoded SM Number from Mlir Test#186917

Open
smada3 wants to merge 1 commit intollvm:mainfrom
smada3:github/smada/fix-target-arch-mlir
Open

Removed Hardcoded SM Number from Mlir Test#186917
smada3 wants to merge 1 commit intollvm:mainfrom
smada3:github/smada/fix-target-arch-mlir

Conversation

@smada3
Copy link
Contributor

@smada3 smada3 commented Mar 16, 2026

This MR removes a hard-coded compute number in an MLIR test. This will allow the test to not need to be updated in the future. The default value will come from NVVMOps.td.

@smada3 smada3 self-assigned this Mar 16, 2026
@smada3 smada3 requested a review from fabianmcg as a code owner March 16, 2026 23:34
@llvmbot
Copy link
Member

llvmbot commented Mar 16, 2026

@llvm/pr-subscribers-mlir-gpu

Author: Stefan Mada (smada3)

Changes

This MR removes a hard-coded compute number in an MLIR test. This will allow the test to not need to be updated in the future. The default value will come from NVVMOps.td.


Full diff: https://github.com/llvm/llvm-project/pull/186917.diff

1 Files Affected:

  • (modified) mlir/test/Integration/GPU/CUDA/module-to-binary-compiler-log.mlir (+1-1)
diff --git a/mlir/test/Integration/GPU/CUDA/module-to-binary-compiler-log.mlir b/mlir/test/Integration/GPU/CUDA/module-to-binary-compiler-log.mlir
index a5c89b5704c85..0b2adcf224f03 100644
--- a/mlir/test/Integration/GPU/CUDA/module-to-binary-compiler-log.mlir
+++ b/mlir/test/Integration/GPU/CUDA/module-to-binary-compiler-log.mlir
@@ -4,7 +4,7 @@
 module attributes {gpu.container_module} {
   // CHECK-LABEL: gpu.binary @kernel_module
   // CHECK: properties = {{{.*}}ISACompilerLog = {{.*}}
-  gpu.module @kernel_module [#nvvm.target<chip = "sm_70", flags = {"collect-compiler-diagnostics"}>] {
+  gpu.module @kernel_module [#nvvm.target<flags = {"collect-compiler-diagnostics"}>] {
     llvm.func @kernel(%arg0: i32, %arg1: !llvm.ptr,
         %arg2: !llvm.ptr, %arg3: i64, %arg4: i64,
         %arg5: i64) attributes {gpu.kernel} {

@llvmbot
Copy link
Member

llvmbot commented Mar 16, 2026

@llvm/pr-subscribers-mlir

Author: Stefan Mada (smada3)

Changes

This MR removes a hard-coded compute number in an MLIR test. This will allow the test to not need to be updated in the future. The default value will come from NVVMOps.td.


Full diff: https://github.com/llvm/llvm-project/pull/186917.diff

1 Files Affected:

  • (modified) mlir/test/Integration/GPU/CUDA/module-to-binary-compiler-log.mlir (+1-1)
diff --git a/mlir/test/Integration/GPU/CUDA/module-to-binary-compiler-log.mlir b/mlir/test/Integration/GPU/CUDA/module-to-binary-compiler-log.mlir
index a5c89b5704c85..0b2adcf224f03 100644
--- a/mlir/test/Integration/GPU/CUDA/module-to-binary-compiler-log.mlir
+++ b/mlir/test/Integration/GPU/CUDA/module-to-binary-compiler-log.mlir
@@ -4,7 +4,7 @@
 module attributes {gpu.container_module} {
   // CHECK-LABEL: gpu.binary @kernel_module
   // CHECK: properties = {{{.*}}ISACompilerLog = {{.*}}
-  gpu.module @kernel_module [#nvvm.target<chip = "sm_70", flags = {"collect-compiler-diagnostics"}>] {
+  gpu.module @kernel_module [#nvvm.target<flags = {"collect-compiler-diagnostics"}>] {
     llvm.func @kernel(%arg0: i32, %arg1: !llvm.ptr,
         %arg2: !llvm.ptr, %arg3: i64, %arg4: i64,
         %arg5: i64) attributes {gpu.kernel} {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants