[Mlir-commits] [mlir] [mlir][gpu] Add host-supports-nvptx to test gpu-lower-to-nvvm-pipeline (PR #80155)
Guray Ozen
llvmlistbot at llvm.org
Wed Jan 31 08:10:44 PST 2024
https://github.com/grypp created https://github.com/llvm/llvm-project/pull/80155
PR #78556 added a new mlir test with gpu-lower-to-nvvm-pipeline that checks the generated PTX. However, it causes a problem on host without cuda support.
This PR adds `REQUIRES: host-supports-nvptx`.
>From 08e91787455df2872290622e9674c17ceed055d4 Mon Sep 17 00:00:00 2001
From: Guray Ozen <guray.ozen at gmail.com>
Date: Wed, 31 Jan 2024 17:10:14 +0100
Subject: [PATCH] [mlir][gpu] Add host-supports-nvptx to test
gpu-lower-to-nvvm-pipeline
PR #78556 added a new mlir test with gpu-lower-to-nvvm-pipeline that checks the generated PTX. However, it causes a problem on host without cuda support.
This PR adds `REQUIRES: host-supports-nvptx`.
---
mlir/test/Dialect/GPU/test-nvvm-pipeline.mlir | 1 +
1 file changed, 1 insertion(+)
diff --git a/mlir/test/Dialect/GPU/test-nvvm-pipeline.mlir b/mlir/test/Dialect/GPU/test-nvvm-pipeline.mlir
index fde99ab105d68..70587592a3efa 100644
--- a/mlir/test/Dialect/GPU/test-nvvm-pipeline.mlir
+++ b/mlir/test/Dialect/GPU/test-nvvm-pipeline.mlir
@@ -1,3 +1,4 @@
+// REQUIRES: host-supports-nvptx
// RUN: mlir-opt %s \
// RUN: | mlir-opt -gpu-lower-to-nvvm-pipeline="cubin-format=isa" \
// RUN: -split-input-file | FileCheck %s
More information about the Mlir-commits
mailing list