Peter Collingbourne | a4ae229 | 2011-10-06 18:51:56 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s |
2 | |||||
3 | #include "../SemaCUDA/cuda.h" | ||||
4 | |||||
5 | // Test that we build the correct number of calls to cudaSetupArgument followed | ||||
6 | // by a call to cudaLaunch. | ||||
7 | |||||
8 | // CHECK: define{{.*}}kernelfunc | ||||
9 | // CHECK: call{{.*}}cudaSetupArgument | ||||
10 | // CHECK: call{{.*}}cudaSetupArgument | ||||
11 | // CHECK: call{{.*}}cudaSetupArgument | ||||
12 | // CHECK: call{{.*}}cudaLaunch | ||||
13 | __global__ void kernelfunc(int i, int j, int k) {} |