CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
46 lines
2.9 KiB
Common Lisp
46 lines
2.9 KiB
Common Lisp
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL2.0
|
|
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=clc++1.0
|
|
|
|
int G2 = 0;
|
|
global int G3 = 0;
|
|
local int G4 = 0; // expected-error{{program scope variable must reside in global or constant address space}}
|
|
|
|
static float g_implicit_static_var = 0;
|
|
static constant float g_constant_static_var = 0;
|
|
static global float g_global_static_var = 0;
|
|
static local float g_local_static_var = 0; // expected-error {{program scope variable must reside in global or constant address space}}
|
|
static private float g_private_static_var = 0; // expected-error {{program scope variable must reside in global or constant address space}}
|
|
static generic float g_generic_static_var = 0; // expected-error {{program scope variable must reside in global or constant address space}}
|
|
|
|
extern float g_implicit_extern_var;
|
|
extern constant float g_constant_extern_var;
|
|
extern global float g_global_extern_var;
|
|
extern local float g_local_extern_var; // expected-error {{extern variable must reside in global or constant address space}}
|
|
extern private float g_private_extern_var; // expected-error {{extern variable must reside in global or constant address space}}
|
|
extern generic float g_generic_extern_var; // expected-error {{extern variable must reside in global or constant address space}}
|
|
|
|
static void kernel bar(void) { // expected-error{{kernel functions cannot be declared static}}
|
|
}
|
|
|
|
void kernel foo(void) {
|
|
constant int L1 = 0;
|
|
local int L2;
|
|
global int L3; // expected-error{{function scope variable cannot be declared in global address space}}
|
|
generic int L4; // expected-error{{automatic variable qualified with an invalid address space}}
|
|
__attribute__((address_space(100))) int L5; // expected-error{{automatic variable qualified with an invalid address space}}
|
|
|
|
static float l_implicit_static_var = 0;
|
|
static constant float l_constant_static_var = 0;
|
|
static global float l_global_static_var = 0;
|
|
static local float l_local_static_var = 0; // expected-error {{static local variable must reside in global or constant address space}}
|
|
static private float l_private_static_var = 0; // expected-error {{static local variable must reside in global or constant address space}}
|
|
static generic float l_generic_static_var = 0; // expected-error {{static local variable must reside in global or constant address space}}
|
|
|
|
extern float l_implicit_extern_var;
|
|
extern constant float l_constant_extern_var;
|
|
extern global float l_global_extern_var;
|
|
extern local float l_local_extern_var; // expected-error {{extern variable must reside in global or constant address space}}
|
|
extern private float l_private_extern_var; // expected-error {{extern variable must reside in global or constant address space}}
|
|
extern generic float l_generic_extern_var; // expected-error {{extern variable must reside in global or constant address space}}
|
|
}
|