Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/cuda-arch-translation.cu
Show All 29 Lines | |||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_62 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_62 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,SM62 %s | // RUN: | FileCheck -check-prefixes=COMMON,SM62 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_70 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_70 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,SM70 %s | // RUN: | FileCheck -check-prefixes=COMMON,SM70 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx600 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx600 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX600 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX600 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx601 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx601 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX601 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX601 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx602 %s 2>&1 \ | |||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX602 %s | |||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx700 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx700 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX700 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX700 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx701 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx701 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX701 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX701 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx702 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx702 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX702 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX702 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx703 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx703 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX703 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX703 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx704 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx704 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX704 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX704 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx705 %s 2>&1 \ | |||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX705 %s | |||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx801 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx801 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX801 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX801 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx802 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx802 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX802 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX802 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx803 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx803 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX803 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX803 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx805 %s 2>&1 \ | |||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX805 %s | |||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx810 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx810 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX810 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX810 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx900 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx900 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX900 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX900 %s | ||||
// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx902 %s 2>&1 \ | // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=gfx902 %s 2>&1 \ | ||||
// RUN: | FileCheck -check-prefixes=COMMON,GFX902 %s | // RUN: | FileCheck -check-prefixes=COMMON,GFX902 %s | ||||
// COMMON: ptxas | // COMMON: ptxas | ||||
Show All 10 Lines | |||||
// SM52:--image=profile=sm_52{{.*}}--image=profile=compute_52 | // SM52:--image=profile=sm_52{{.*}}--image=profile=compute_52 | ||||
// SM53:--image=profile=sm_53{{.*}}--image=profile=compute_53 | // SM53:--image=profile=sm_53{{.*}}--image=profile=compute_53 | ||||
// SM60:--image=profile=sm_60{{.*}}--image=profile=compute_60 | // SM60:--image=profile=sm_60{{.*}}--image=profile=compute_60 | ||||
// SM61:--image=profile=sm_61{{.*}}--image=profile=compute_61 | // SM61:--image=profile=sm_61{{.*}}--image=profile=compute_61 | ||||
// SM62:--image=profile=sm_62{{.*}}--image=profile=compute_62 | // SM62:--image=profile=sm_62{{.*}}--image=profile=compute_62 | ||||
// SM70:--image=profile=sm_70{{.*}}--image=profile=compute_70 | // SM70:--image=profile=sm_70{{.*}}--image=profile=compute_70 | ||||
// GFX600:--image=profile=gfx600{{.*}}--image=profile=compute_amdgcn | // GFX600:--image=profile=gfx600{{.*}}--image=profile=compute_amdgcn | ||||
// GFX601:--image=profile=gfx601{{.*}}--image=profile=compute_amdgcn | // GFX601:--image=profile=gfx601{{.*}}--image=profile=compute_amdgcn | ||||
// GFX602:--image=profile=gfx602{{.*}}--image=profile=compute_amdgcn | |||||
// GFX700:--image=profile=gfx700{{.*}}--image=profile=compute_amdgcn | // GFX700:--image=profile=gfx700{{.*}}--image=profile=compute_amdgcn | ||||
// GFX701:--image=profile=gfx701{{.*}}--image=profile=compute_amdgcn | // GFX701:--image=profile=gfx701{{.*}}--image=profile=compute_amdgcn | ||||
// GFX702:--image=profile=gfx702{{.*}}--image=profile=compute_amdgcn | // GFX702:--image=profile=gfx702{{.*}}--image=profile=compute_amdgcn | ||||
// GFX703:--image=profile=gfx703{{.*}}--image=profile=compute_amdgcn | // GFX703:--image=profile=gfx703{{.*}}--image=profile=compute_amdgcn | ||||
// GFX704:--image=profile=gfx704{{.*}}--image=profile=compute_amdgcn | // GFX704:--image=profile=gfx704{{.*}}--image=profile=compute_amdgcn | ||||
// GFX705:--image=profile=gfx705{{.*}}--image=profile=compute_amdgcn | |||||
// GFX801:--image=profile=gfx801{{.*}}--image=profile=compute_amdgcn | // GFX801:--image=profile=gfx801{{.*}}--image=profile=compute_amdgcn | ||||
// GFX802:--image=profile=gfx802{{.*}}--image=profile=compute_amdgcn | // GFX802:--image=profile=gfx802{{.*}}--image=profile=compute_amdgcn | ||||
// GFX803:--image=profile=gfx803{{.*}}--image=profile=compute_amdgcn | // GFX803:--image=profile=gfx803{{.*}}--image=profile=compute_amdgcn | ||||
// GFX805:--image=profile=gfx805{{.*}}--image=profile=compute_amdgcn | |||||
// GFX810:--image=profile=gfx810{{.*}}--image=profile=compute_amdgcn | // GFX810:--image=profile=gfx810{{.*}}--image=profile=compute_amdgcn | ||||
// GFX900:--image=profile=gfx900{{.*}}--image=profile=compute_amdgcn | // GFX900:--image=profile=gfx900{{.*}}--image=profile=compute_amdgcn | ||||
// GFX902:--image=profile=gfx902{{.*}}--image=profile=compute_amdgcn | // GFX902:--image=profile=gfx902{{.*}}--image=profile=compute_amdgcn |