[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / clang / test / SemaCUDA / spirv-attrs.cu
blob6539421423ee11033f10c891825063163de4b5b5
1 // expected-no-diagnostics
3 // RUN: %clang_cc1 -triple spirv64 -aux-triple x86_64-unknown-linux-gnu \
4 // RUN:   -fcuda-is-device -verify -fsyntax-only %s
6 #include "Inputs/cuda.h"
8 __attribute__((reqd_work_group_size(128, 1, 1)))
9 __global__ void reqd_work_group_size_128_1_1() {}
11 __attribute__((work_group_size_hint(2, 2, 2)))
12 __global__ void work_group_size_hint_2_2_2() {}
14 __attribute__((vec_type_hint(int)))
15 __global__ void vec_type_hint_int() {}
17 __attribute__((intel_reqd_sub_group_size(64)))
18 __global__ void intel_reqd_sub_group_size_64() {}