Lines Matching refs:ref
26 int &ref = global_device_var; in dev_capture_dev_ref_by_copy() local
27 [=](){ *out = ref;}(); in dev_capture_dev_ref_by_copy()
46 int &ref = global_device_var; in dev_capture_dev_ref_by_ref() local
47 [&](){ ref++; *out = ref;}(); in dev_capture_dev_ref_by_ref()
57 int &ref = global_device_var; in dev_ref() local
58 ref++; in dev_ref()
59 *out = ref; in dev_ref()
70 int &ref = global_device_var; in dev_lambda_ref() local
71 ref++; in dev_lambda_ref()
72 *out = ref; in dev_lambda_ref()
80 int &ref = global_host_var; in host_capture_host_ref_by_copy() local
81 [=](){ *out = ref;}(); in host_capture_host_ref_by_copy()
93 int &ref = global_host_var; in host_capture_host_ref_by_ref() local
94 [&](){ ref++; *out = ref;}(); in host_capture_host_ref_by_ref()
104 int &ref = global_host_var; in host_ref() local
105 ref++; in host_ref()
106 *out = ref; in host_ref()
117 int &ref = global_host_var; in host_lambda_ref() local
118 ref++; in host_lambda_ref()
119 *out = ref; in host_lambda_ref()
132 int &ref = global_host_var; in dev_capture_host_ref_by_copy() local
133 kern<<<1, 1>>>([=]__device__() { *out = ref;}); in dev_capture_host_ref_by_copy()