Lines Matching refs:__device__
40 __device__ DeviceReturnTy dh() { return DeviceReturnTy(); } in dh()
43 __host__ __device__ int hdh() { return 0; } // expected-note {{previous definition is here}} in hdh()
47 __host__ __device__ int hhd() { return 0; } // expected-error {{redefinition of 'hhd'}} in hhd()
51 __host__ __device__ int hdd() { return 0; } // expected-note {{previous definition is here}} in hdd()
52 __device__ int hdd() { return 0; } // expected-error {{redefinition of 'hdd'}} in hdd()
54 __device__ int dhd() { return 0; } // expected-note {{previous definition is here}} in dhd()
55 __host__ __device__ int dhd() { return 0; } // expected-error {{redefinition of 'dhd'}} in dhd()
64 extern "C" __device__ DeviceReturnTy cdh() { return DeviceReturnTy(); } in cdh()
68 extern "C" __host__ __device__ int chhd1() { return 0; } // expected-note {{previous definition is … in chhd1()
72 extern "C" __host__ __device__ int chhd2() { return 0; } // expected-error {{redefinition of 'chhd2… in chhd2()
77 __device__ DeviceReturnTy d() { return DeviceReturnTy(); } in d()
94 extern "C" __device__ DeviceReturnTy cd() { return DeviceReturnTy(); } in cd()
126 __device__ void devicef() { in devicef()
168 __host__ __device__ void hostdevicef() { in hostdevicef()
215 __device__ ~d_dh() {} in ~d_dh()
221 __host__ __device__ ~d_hd() {} in ~d_hd()
226 __device__ ~d_dhhd() {} in ~d_dhhd()
228 __host__ __device__ ~d_dhhd() {} // expected-error {{destructor cannot be redeclared}} in ~d_dhhd()
233 __host__ __device__ ~d_hhd() {} // expected-error {{destructor cannot be redeclared}} in ~d_hhd()
237 __host__ __device__ ~d_hdh() {} // expected-note {{previous declaration is here}} in ~d_hdh()
242 __device__ ~d_dhd() {} // expected-note {{previous declaration is here}} in ~d_dhd()
243 __host__ __device__ ~d_dhd() {} // expected-error {{destructor cannot be redeclared}} in ~d_dhd()
247 __host__ __device__ ~d_hdd() {} // expected-note {{previous declaration is here}} in ~d_hdd()
248 __device__ ~d_hdd() {} // expected-error {{destructor cannot be redeclared}} in ~d_hdd()
259 __device__ void operator delete(void *ptr);
265 __device__ __host__ void operator delete(void *ptr);
270 …__host__ __device__ void operator delete(void *ptr) {} // expected-error {{class member cannot be … in operator delete()
274 …__host__ __device__ void operator delete(void *ptr) {} // expected-note {{previous declaration is … in operator delete()
279 __device__ void operator delete(void *ptr) {} // expected-note {{previous declaration is here}} in operator delete()
280 …__host__ __device__ void operator delete(void *ptr) {} // expected-error {{class member cannot be … in operator delete()
284 …__host__ __device__ void operator delete(void *ptr) {} // expected-note {{previous declaration is … in operator delete()
285 …__device__ void operator delete(void *ptr) {} // expected-error {{class member cannot be redeclare… in operator delete()
312 __device__ DeviceReturnTy template_vs_function(float arg) { in template_vs_function()
319 __host__ __device__ void test_host_device_calls_template(void) { in test_host_device_calls_template()
337 __device__ void test_device_calls_template_fn() { in test_device_calls_template_fn()
347 __host__ __device__ HostDeviceReturnTy template_vs_hd_function(float arg) { in template_vs_hd_function()
351 __host__ __device__ void test_host_device_calls_hd_template() { in test_host_device_calls_hd_template()
361 __device__ void test_device_calls_hd_template() { in test_device_calls_hd_template()
371 __device__ DeviceReturnTy device_only_function(int arg) { return DeviceReturnTy(); } in device_only_function()
372 __device__ DeviceReturnTy2 device_only_function(float arg) { return DeviceReturnTy2(); } in device_only_function()
376 __host__ __device__ void test_host_device_single_side_overloading() { in test_host_device_single_side_overloading()