Lines Matching full:out

18 __device__ void dev_fun(int *out) {  in dev_fun()  argument
26 …*out = global_host_var; // dev-error {{reference to __host__ variable 'global_host_var' in __devic… in dev_fun()
27 *out = global_dev_var; in dev_fun()
28 *out = global_constant_var; in dev_fun()
29 *out = global_shared_var; in dev_fun()
30 *out = global_constexpr_var; in dev_fun()
31 *out = global_const_var; in dev_fun()
33 *out = ref_host_var; in dev_fun()
34 *out = ref_dev_var; in dev_fun()
35 *out = ref_constant_var; in dev_fun()
36 *out = ref_shared_var; in dev_fun()
37 *out = ref_constexpr_var; in dev_fun()
38 *out = ref_const_var; in dev_fun()
41 __global__ void global_fun(int *out) { in global_fun() argument
49 …*out = global_host_var; // dev-error {{reference to __host__ variable 'global_host_var' in __globa… in global_fun()
50 *out = global_dev_var; in global_fun()
51 *out = global_constant_var; in global_fun()
52 *out = global_shared_var; in global_fun()
53 *out = global_constexpr_var; in global_fun()
54 *out = global_const_var; in global_fun()
56 *out = ref_host_var; in global_fun()
57 *out = ref_dev_var; in global_fun()
58 *out = ref_constant_var; in global_fun()
59 *out = ref_shared_var; in global_fun()
60 *out = ref_constexpr_var; in global_fun()
61 *out = ref_const_var; in global_fun()
64 __host__ __device__ void host_dev_fun(int *out) { in host_dev_fun() argument
72 …*out = global_host_var; // dev-error {{reference to __host__ variable 'global_host_var' in __host_… in host_dev_fun()
73 *out = global_dev_var; in host_dev_fun()
74 *out = global_constant_var; in host_dev_fun()
75 *out = global_shared_var; in host_dev_fun()
76 *out = global_constexpr_var; in host_dev_fun()
77 *out = global_const_var; in host_dev_fun()
79 *out = ref_host_var; in host_dev_fun()
80 *out = ref_dev_var; in host_dev_fun()
81 *out = ref_constant_var; in host_dev_fun()
82 *out = ref_shared_var; in host_dev_fun()
83 *out = ref_constexpr_var; in host_dev_fun()
84 *out = ref_const_var; in host_dev_fun()
87 inline __host__ __device__ void inline_host_dev_fun(int *out) { in inline_host_dev_fun() argument
95 *out = global_host_var; in inline_host_dev_fun()
96 *out = global_dev_var; in inline_host_dev_fun()
97 *out = global_constant_var; in inline_host_dev_fun()
98 *out = global_shared_var; in inline_host_dev_fun()
99 *out = global_constexpr_var; in inline_host_dev_fun()
100 *out = global_const_var; in inline_host_dev_fun()
102 *out = ref_host_var; in inline_host_dev_fun()
103 *out = ref_dev_var; in inline_host_dev_fun()
104 *out = ref_constant_var; in inline_host_dev_fun()
105 *out = ref_shared_var; in inline_host_dev_fun()
106 *out = ref_constexpr_var; in inline_host_dev_fun()
107 *out = ref_const_var; in inline_host_dev_fun()
110 void dev_lambda_capture_by_ref(int *out) { in dev_lambda_capture_by_ref() argument
119 …*out = global_host_var; // dev-error {{reference to __host__ variable 'global_host_var' in __host_… in dev_lambda_capture_by_ref()
120 …// dev-error@-1 {{capture host variable 'out' by reference in device or host device lambda functio… in dev_lambda_capture_by_ref()
121 *out = global_dev_var; in dev_lambda_capture_by_ref()
122 *out = global_constant_var; in dev_lambda_capture_by_ref()
123 *out = global_shared_var; in dev_lambda_capture_by_ref()
124 *out = global_constexpr_var; in dev_lambda_capture_by_ref()
125 *out = global_const_var; in dev_lambda_capture_by_ref()
127 …*out = ref_host_var; // dev-error {{capture host variable 'ref_host_var' by reference in device or… in dev_lambda_capture_by_ref()
128 *out = ref_dev_var; in dev_lambda_capture_by_ref()
129 *out = ref_constant_var; in dev_lambda_capture_by_ref()
130 *out = ref_shared_var; in dev_lambda_capture_by_ref()
131 *out = ref_constexpr_var; in dev_lambda_capture_by_ref()
132 *out = ref_const_var; in dev_lambda_capture_by_ref()
136 void dev_lambda_capture_by_copy(int *out) { in dev_lambda_capture_by_copy() argument
145 …*out = global_host_var; // dev-error {{reference to __host__ variable 'global_host_var' in __host_… in dev_lambda_capture_by_copy()
146 *out = global_dev_var; in dev_lambda_capture_by_copy()
147 *out = global_constant_var; in dev_lambda_capture_by_copy()
148 *out = global_shared_var; in dev_lambda_capture_by_copy()
149 *out = global_constexpr_var; in dev_lambda_capture_by_copy()
150 *out = global_const_var; in dev_lambda_capture_by_copy()
152 *out = ref_host_var; in dev_lambda_capture_by_copy()
153 *out = ref_dev_var; in dev_lambda_capture_by_copy()
154 *out = ref_constant_var; in dev_lambda_capture_by_copy()
155 *out = ref_shared_var; in dev_lambda_capture_by_copy()
156 *out = ref_constexpr_var; in dev_lambda_capture_by_copy()
157 *out = ref_const_var; in dev_lambda_capture_by_copy()