[PATCH] D158556: Add test for SetDefaultDeviceOp rewrite.

Paul C Fuqua via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 22 14:30:34 PDT 2023


pcf000 created this revision.
Herald added subscribers: bviyer, Moerafaat, zero9178, bzcheeseman, sdasgup3, wenzhicui, wrengr, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, liufengdb, aartbik, mgester, arpith-jacob, csigg, antiagainst, shauheen, rriddle, mehdi_amini.
Herald added a reviewer: ThomasRaoux.
Herald added a project: All.
pcf000 requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer, nicolasvasilache.
Herald added a reviewer: herhut.
Herald added a project: LLVM.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158556

Files:
  external/llvm-project/mlir/test/Conversion/GPUCommon/set-default-device.mlir


Index: external/llvm-project/mlir/test/Conversion/GPUCommon/set-default-device.mlir
===================================================================
--- /dev/null
+++ external/llvm-project/mlir/test/Conversion/GPUCommon/set-default-device.mlir
@@ -0,0 +1,10 @@
+// RUN: mlir-opt %s --gpu-to-llvm | FileCheck %s
+
+module attributes {gpu.container_module} {
+  // CHECK-LABEL: func @set_default_device
+  func.func @set_default_device(%arg0: i32) {
+    // CHECK: mgpuSetDefaultDevice
+    gpu.set_default_device %arg0
+    return
+  }
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158556.552508.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230822/85708559/attachment.bin>


More information about the llvm-commits mailing list