86 lines · plain
1// RUN: mlir-opt %s -split-input-file -verify-diagnostics2 3// Just check these don't emit errors.4gpu.module @check_valid_SM_exact [#nvvm.target<chip = "sm_80">] {5 test.nvvm_requires_sm_806}7 8gpu.module @check_valid_SM_greater_1 [#nvvm.target<chip = "sm_86">] {9 test.nvvm_requires_sm_8010}11 12gpu.module @check_valid_SM_greater_2 [#nvvm.target<chip = "sm_90">] {13 test.nvvm_requires_sm_8014}15 16gpu.module @check_valid_SM_arch_acc_1 [#nvvm.target<chip = "sm_90a">] {17 test.nvvm_requires_sm_90a18}19 20gpu.module @check_valid_SM_arch_acc_2 [#nvvm.target<chip = "sm_90a">] {21 test.nvvm_requires_sm_8022}23 24gpu.module @check_valid_SM_arch_acc_multi_1 [#nvvm.target<chip = "sm_90a">] {25 test.nvvm_requires_sm_90a_or_sm_100a26}27 28gpu.module @check_valid_SM_arch_acc_multi_2 [#nvvm.target<chip = "sm_100a">] {29 test.nvvm_requires_sm_90a_or_sm_100a30}31 32 33gpu.module @disable_verify_target1 [#nvvm.target<chip = "sm_90", verifyTarget = false>] {34 test.nvvm_requires_sm_90a35}36 37gpu.module @disable_verify_target2 [#nvvm.target<chip = "sm_70", verifyTarget = false>] {38 test.nvvm_requires_sm_8039}40 41gpu.module @disable_verify_target3 [#nvvm.target<chip = "sm_90", verifyTarget = false>] {42 test.nvvm_requires_sm_90a_or_sm_100a43}44 45// -----46 47gpu.module @check_invalid_SM_lesser_1 [#nvvm.target<chip = "sm_70">] {48 // expected-error @below {{is not supported on sm_70}}49 test.nvvm_requires_sm_8050}51 52// -----53 54gpu.module @check_invalid_SM_lesser_2 [#nvvm.target<chip = "sm_75">] {55 // expected-error @below {{is not supported on sm_75}}56 test.nvvm_requires_sm_8057}58 59// -----60 61gpu.module @check_invalid_SM_arch_acc_1 [#nvvm.target<chip = "sm_90">] {62 // expected-error @below {{is not supported on sm_90}}63 test.nvvm_requires_sm_90a64}65 66// -----67 68gpu.module @check_invalid_SM_arch_acc_2 [#nvvm.target<chip = "sm_80">] {69 // expected-error @below {{is not supported on sm_80}}70 test.nvvm_requires_sm_90a71}72 73// -----74 75gpu.module @check_invalid_SM_arch_acc_multi_1 [#nvvm.target<chip = "sm_80">] {76 // expected-error @below {{is not supported on sm_80}}77 test.nvvm_requires_sm_90a_or_sm_100a78}79 80// -----81 82gpu.module @check_invalid_SM_arch_acc_multi_2 [#nvvm.target<chip = "sm_90">] {83 // expected-error @below {{is not supported on sm_90}}84 test.nvvm_requires_sm_90a_or_sm_100a85}86