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
41 lines
2.1 KiB
Plaintext
41 lines
2.1 KiB
Plaintext
#include "Inputs/cuda.h"
|
|
|
|
// RUN: %clang_cc1 -triple nvptx64-nvidia-cuda -fclangir \
|
|
// RUN: -fcuda-is-device -emit-cir -target-sdk-version=12.3 \
|
|
// RUN: -fvisibility=hidden -fapply-global-visibility-to-externs \
|
|
// RUN: -I%S/Inputs/ %s -o %t.cir
|
|
// RUN: FileCheck --check-prefix=CIR-DEVICE --input-file=%t.cir %s
|
|
|
|
// RUN: %clang_cc1 -triple nvptx64-nvidia-cuda -fclangir \
|
|
// RUN: -fcuda-is-device -emit-llvm -target-sdk-version=12.3 \
|
|
// RUN: -fvisibility=hidden -fapply-global-visibility-to-externs \
|
|
// RUN: -I%S/Inputs/ %s -o %t.ll
|
|
// RUN: FileCheck --check-prefix=LLVM-DEVICE --input-file=%t.ll %s
|
|
|
|
// RUN: %clang_cc1 -triple nvptx64-nvidia-cuda \
|
|
// RUN: -fcuda-is-device -emit-llvm -target-sdk-version=12.3 \
|
|
// RUN: -fvisibility=hidden -fapply-global-visibility-to-externs \
|
|
// RUN: -I%S/Inputs/ %s -o %t.ll
|
|
// RUN: FileCheck --check-prefix=OGCG-DEVICE --input-file=%t.ll %s
|
|
|
|
// CIR-DEVICE: cir.global protected {{.*}} @deviceVar = #cir.int<0>
|
|
// LLVM-DEVICE: @deviceVar = protected addrspace(1) externally_initialized global i32 0
|
|
// OGCG-DEVICE: @deviceVar = protected addrspace(1) externally_initialized global i32 0
|
|
__attribute__((device)) __device__ int deviceVar;
|
|
|
|
// CIR-DEVICE: cir.global protected constant {{.*}} @constantVar = #cir.int<0>
|
|
// LLVM-DEVICE: @constantVar = protected addrspace(4) externally_initialized constant i32 0
|
|
// OGCG-DEVICE: @constantVar = protected addrspace(4) externally_initialized constant i32 0
|
|
__attribute__((constant)) __constant__ int constantVar;
|
|
|
|
// CIR-DEVICE: cir.global protected {{.*}} @nonconstVal = #cir.int<42>
|
|
// LLVM-DEVICE: @nonconstVal = protected addrspace(1) externally_initialized global i32 42
|
|
// OGCG-DEVICE: @nonconstVal = protected addrspace(1) externally_initialized global i32 42
|
|
__device__ int nonconstVal = 42;
|
|
|
|
// CIR-DEVICE: cir.func {{.*}} protected {{.*}} @_Z10kernelFuncv()
|
|
// LLVM-DEVICE: define protected ptx_kernel void @_Z10kernelFuncv()
|
|
// OGCG-DEVICE: define protected ptx_kernel void @_Z10kernelFuncv()
|
|
__attribute__((global)) __global__ void kernelFunc() {
|
|
}
|