Home
last modified time | relevance | path

Searched refs:__host__ (Results 1 – 25 of 105) sorted by relevance

12345

/external/clang/test/SemaCUDA/
Dfunction-overload.cu35 __host__ void hh() {} // expected-note {{previous definition is here}} in hh()
39 __host__ HostReturnTy dh() { return HostReturnTy(); } in dh()
43 __host__ __device__ int hdh() { return 0; } // expected-note {{previous definition is here}} in hdh()
44 __host__ int hdh() { return 0; } // expected-error {{redefinition of 'hdh'}} in hdh()
46 __host__ int hhd() { return 0; } // expected-note {{previous definition is here}} in hhd()
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()
55 __host__ __device__ int dhd() { return 0; } // expected-error {{redefinition of 'dhd'}} in dhd()
60 extern "C" __host__ int chh() { return 0; } // expected-note {{previous definition is here}} in chh()
65 extern "C" __host__ HostReturnTy cdh() { return HostReturnTy(); } in cdh()
[all …]
Dbad-attributes.cu16 __host__ int b1; // expected-warning {{attribute only applies to functions}}
17 __host__ void b2();
28 __device__ __host__ void z1();
34 __host__ __device__ void z5();
35 __host__ __global__ void z6(); // expected-error {{attributes are not compatible}}
48 __global__ __host__ void z12(); // expected-error {{attributes are not compatible}}
/external/llvm-project/clang/test/SemaCUDA/
Dcall-host-fn-from-device.cu23 __host__ __device__ void hd() { host_fn(); } in hd()
28 __host__ __device__ void hd2() { host_fn(); } in hd2()
30 __host__ __device__ void hd3();
44 __host__ void operator delete(void *) { host_fn(); }; in operator delete()
50 __host__ __device__ void operator delete(void*);
53 __host__ __device__ void T::hd3() { in hd3()
58 template <typename T> __host__ __device__ void hd2() { host_fn(); } in hd2()
62 __host__ __device__ void hd() { host_fn(); } in hd()
65 template <typename T> __host__ __device__ void hd3() { host_fn(); } in hd3()
70 template <typename T> __host__ __device__ void hd4() { host_fn(); } in hd4()
[all …]
Dfunction-overload.cu43 __host__ void hh() {} // expected-note {{previous definition is here}} in hh()
47 __host__ HostReturnTy dh() { return HostReturnTy(); } in dh()
51 __host__ __device__ int hdh() { return 0; } // expected-note {{previous declaration is here}} in hdh()
52 __host__ int hdh() { return 0; } in hdh()
55 __host__ int hhd() { return 0; } // expected-note {{previous declaration is here}} in hhd()
56 __host__ __device__ int hhd() { return 0; } in hhd()
59 __host__ __device__ int hdd() { return 0; } // expected-note {{previous declaration is here}} in hdd()
64 __host__ __device__ int dhd() { return 0; } in dhd()
68 extern "C" __host__ int chh() { return 0; } // expected-note {{previous definition is here}} in chh()
73 extern "C" __host__ HostReturnTy cdh() { return HostReturnTy(); } in cdh()
[all …]
Dfunction-template-overload.cu10 template <typename T> __host__ HType overload_h_d(T a) { return HType(); } in overload_h_d()
18 template __device__ __host__ DType overload_h_d(int a); // There's no HD template...
20 template __device__ __host__ HType overload_h_d(int a); // There's no HD template...
23 template __host__ HType overload_h_d(int a); // OK. instantiates H
26 template <> __device__ __host__ DType overload_h_d(long a); // There's no HD template...
28 template <> __device__ __host__ HType overload_h_d(long a); // There's no HD template...
31 template <> __host__ HType overload_h_d(long a); // OK. instantiates H
36 template <typename T> __host__ __device__ HDType overload_hd(T a) { return HDType(); } in overload_hd()
45 template <> __host__ HType overload_hd(int a);
47 template __host__ HType overload_hd(long a);
[all …]
Dusual-deallocators.cu11 extern __host__ void host_fn();
13 extern __host__ __device__ void hd_fn();
16 __host__ void operator delete(void *) { host_fn(); }; in operator delete()
21 __host__ void operator delete(void *) = delete;
27 __host__ void operator delete(void *) { host_fn(); }; in operator delete()
33 __host__ void operator delete(void *) { host_fn(); }; in operator delete()
38 __host__ void operator delete(void *, __SIZE_TYPE__) { host_fn(); }; in operator delete()
43 __host__ void operator delete(void *, __SIZE_TYPE__) { host_fn(); }; in operator delete()
48 __host__ void operator delete(void *) { host_fn(); }; in operator delete()
54 __host__ void operator delete(void *) { host_fn(); }; in operator delete()
[all …]
Dcall-device-fn-from-host.cu23 __host__ __device__ void hd() { device_fn(); } in hd()
28 __host__ __device__ void hd2() { device_fn(); } in hd2()
30 __host__ __device__ void hd3();
36 __host__ __device__ void T::hd3() { in hd3()
41 template <typename T> __host__ __device__ void hd2() { device_fn(); } in hd2()
45 __host__ __device__ void hd() { device_fn(); } in hd()
49 template <typename T> __host__ __device__ void hd3() { device_fn(); } in hd3()
51 __host__ __device__ void local_var() { in local_var()
56 __host__ __device__ void placement_new(char *ptr) { in placement_new()
61 __host__ __device__ void explicit_destructor(S *s) { in explicit_destructor()
[all …]
Dimplicit-device-lambda.cu15 auto f3 = [&] __host__ {}; in device_fn()
18 auto f4 = [&] __host__ __device__ {}; in device_fn()
29 auto g3 = [&]() __host__ {}; in device_fn()
32 auto g4 = [&]() __host__ __device__ {}; in device_fn()
42 auto h3 = [&] __host__ () {}; in device_fn()
45 auto h4 = [&] __host__ __device__ () {}; in device_fn()
57 auto f3 = [&] __host__ {}; in kernel_fn()
60 auto f4 = [&] __host__ __device__ {}; in kernel_fn()
67 __host__ void host_fn() { in host_fn()
74 auto f3 = [&] __host__ {}; in host_fn()
[all …]
Ddeferred-oeverload.cu13 __host__ void callee(float); // host-note {{candidate function}}
14 __host__ void callee(double); // host-note {{candidate function}}
18 __host__ void callee2(); // dev-note{{candidate function not viable: call to __host__ function from…
22 __host__ void callee3(); // dev-note{{candidate function not viable: call to __host__ function from…
27 __host__ void callee4(int); // com-note 2{{candidate function not viable: requires 1 argument, but …
31 __host__ void callee5(float); // com-note {{candidate function}}
32 __host__ void callee5(double); // com-note {{candidate function}}
34 __host__ void hf() { in hf()
57 __host__ __device__ void sfinae(T t) { // host-note {{candidate template ignored: substitution fail… in sfinae()
67 __host__ __device__ void sfinae(T t) { // host-note {{candidate template ignored: substitution fail… in sfinae()
[all …]
Doverloaded-delete.cu9 __host__ static void operator delete(void*, size_t) {} in operator delete()
13 __host__ __device__ void test(S* s) { in test()
21 __host__ __device__ void test_default_global_delete_hd(int *ptr) { in test_default_global_delete_hd()
30 __host__ void test_default_global_delete(int *ptr) { in test_default_global_delete()
38 __host__ __device__ void test_partial_global_delete_hd(int *ptr) { in test_partial_global_delete_hd()
47 __host__ void test_partial_global_delete(int *ptr) { in test_partial_global_delete()
54 __host__ void operator delete(void *ptr) {} in operator delete()
57 __host__ __device__ void test_overloaded_global_delete_hd(int *ptr) { in test_overloaded_global_delete_hd()
66 __host__ void test_overloaded_global_delete(int *ptr) { in test_overloaded_global_delete()
Dasm_delayed_diags.cu16 static __device__ __host__ void t1(int r) { in t1()
22 static __device__ __host__ unsigned t2(signed char input) { in t2()
30 static __device__ __host__ double t3(double x) { in t3()
38 static __device__ __host__ unsigned char t4(unsigned char a, unsigned char b) { in t4()
51 static __device__ __host__ void t5(void) { in t5()
62 static __device__ __host__ void t6(__m256i *p) { in t6()
67 static __device__ __host__ void t7(__m256i *p) { in t7()
88 __host__ int main() { in main()
Ddefault-ctor.cu10 struct InH { __host__ InH() = default; };
11 struct InHD { __host__ __device__ InHD() = default; };
15 struct OutH { __host__ OutH(); };
16 struct OutHD { __host__ __device__ OutHD(); };
20 __host__ OutH::OutH() = default;
21 __host__ __device__ OutHD::OutHD() = default;
34 __host__ void fh() { in fh()
Dno-destructor-overload.cu15 __host__ ~B() {} // expected-note {{previous definition is here}} in ~B()
16 __host__ __device__ ~B() {} // expected-error {{destructor cannot be redeclared}} in ~B()
20 __host__ __device__ ~C() {} // expected-note {{previous definition is here}} in ~C()
21 __host__ ~C() {} // expected-error {{destructor cannot be redeclared}} in ~C()
26 __host__ __device__ ~D() {} // expected-error {{destructor cannot be redeclared}} in ~D()
30 __host__ __device__ ~E() {} // expected-note {{previous definition is here}} in ~E()
Dtrace-through-global.cu11 inline __host__ __device__ int hd1() { in hd1()
16 inline __host__ __device__ int hd2() { in hd2()
22 inline __host__ __device__ void hd3(int) { in hd3()
25 inline __host__ __device__ void hd3(double) {} in hd3()
27 inline __host__ __device__ void hd4(int) {} in hd4()
28 inline __host__ __device__ void hd4(double) { in hd4()
/external/llvm-project/clang/test/CodeGenCUDA/
Dusual-deallocators.cu11 extern "C" __host__ void host_fn();
13 extern "C" __host__ __device__ void hd_fn();
16 __host__ void operator delete(void *) { host_fn(); }; in operator delete()
21 __host__ void operator delete(void *) { host_fn(); }; in operator delete()
26 __host__ void operator delete(void *, __SIZE_TYPE__) { host_fn(); }; in operator delete()
31 __host__ void operator delete(void *, __SIZE_TYPE__) { host_fn(); }; in operator delete()
36 __host__ void operator delete(void *) { host_fn(); }; in operator delete()
42 __host__ void operator delete(void *) { host_fn(); }; in operator delete()
43 __host__ void operator delete(void *, __SIZE_TYPE__) { host_fn(); }; in operator delete()
48 __host__ void operator delete(void *) { host_fn(); }; in operator delete()
[all …]
/external/tensorflow/tensorflow/core/util/
Dtransform_output_iterator.h34 __host__ __device__ __forceinline__ Reference(StoreType* ptr, in Reference()
39 __host__ __device__ __forceinline__ InputType operator=(InputType val) {
68 __host__ __device__ __forceinline__ TransformOutputIterator( in TransformOutputIterator()
74 __host__ __device__ __forceinline__ self_type operator++(int) {
81 __host__ __device__ __forceinline__ self_type operator++() {
87 __host__ __device__ __forceinline__ reference operator*() const {
93 __host__ __device__ __forceinline__ self_type operator+(Distance n) const {
100 __host__ __device__ __forceinline__ self_type& operator+=(Distance n) {
107 __host__ __device__ __forceinline__ self_type operator-(Distance n) const {
114 __host__ __device__ __forceinline__ self_type& operator-=(Distance n) {
[all …]
Dpermutation_input_iterator.h48 __host__ __device__ __forceinline__ PermutationInputIterator( in PermutationInputIterator()
54 __host__ __device__ __forceinline__ self_type operator++(int) {
61 __host__ __device__ __forceinline__ self_type operator++() {
67 __host__ __device__ __forceinline__ reference operator*() const {
73 __host__ __device__ __forceinline__ self_type operator+(Distance n) const {
80 __host__ __device__ __forceinline__ self_type& operator+=(Distance n) {
87 __host__ __device__ __forceinline__ self_type operator-(Distance n) const {
94 __host__ __device__ __forceinline__ self_type& operator-=(Distance n) {
100 __host__ __device__ __forceinline__ difference_type
107 __host__ __device__ __forceinline__ reference operator[](Distance n) const {
[all …]
Dpermutation_output_iterator.h48 __host__ __device__ __forceinline__ PermutationOutputIterator( in PermutationOutputIterator()
54 __host__ __device__ __forceinline__ self_type operator++(int) {
61 __host__ __device__ __forceinline__ self_type operator++() {
67 __host__ __device__ __forceinline__ reference operator*() const {
73 __host__ __device__ __forceinline__ self_type operator+(Distance n) const {
80 __host__ __device__ __forceinline__ self_type& operator+=(Distance n) {
87 __host__ __device__ __forceinline__ self_type operator-(Distance n) const {
94 __host__ __device__ __forceinline__ self_type& operator-=(Distance n) {
100 __host__ __device__ __forceinline__ difference_type
107 __host__ __device__ __forceinline__ reference operator[](Distance n) const {
[all …]
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_runtime_10_2.inc5 extern __host__ cudaError_t CUDARTAPI cudaDeviceReset(void) {
12 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
20 extern __host__ cudaError_t CUDARTAPI cudaDeviceSetLimit(enum cudaLimit limit,
28 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
36 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
44 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
53 extern __host__ cudaError_t CUDARTAPI
61 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
69 extern __host__ cudaError_t CUDARTAPI
77 extern __host__ cudaError_t CUDARTAPI
[all …]
Dcuda_runtime_11_2.inc4 extern __host__ cudaError_t CUDARTAPI cudaDeviceReset(void) {
11 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
19 extern __host__ cudaError_t CUDARTAPI cudaDeviceSetLimit(enum cudaLimit limit,
27 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
35 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
43 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
52 extern __host__ cudaError_t CUDARTAPI
60 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
68 extern __host__ cudaError_t CUDARTAPI
76 extern __host__ cudaError_t CUDARTAPI
[all …]
Dcuda_runtime_9_0.inc5 extern __host__ cudaError_t CUDARTAPI cudaDeviceReset(void) {
12 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
20 extern __host__ cudaError_t CUDARTAPI cudaDeviceSetLimit(enum cudaLimit limit,
28 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
36 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
44 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
53 extern __host__ cudaError_t CUDARTAPI
61 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
69 extern __host__ cudaError_t CUDARTAPI
77 extern __host__ cudaError_t CUDARTAPI
[all …]
Dcuda_runtime_10_0.inc5 extern __host__ cudaError_t CUDARTAPI cudaDeviceReset(void) {
12 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
20 extern __host__ cudaError_t CUDARTAPI cudaDeviceSetLimit(enum cudaLimit limit,
28 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
36 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
44 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
53 extern __host__ cudaError_t CUDARTAPI
61 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
69 extern __host__ cudaError_t CUDARTAPI
77 extern __host__ cudaError_t CUDARTAPI
[all …]
Dcuda_runtime_10_1.inc5 extern __host__ cudaError_t CUDARTAPI cudaDeviceReset(void) {
12 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
20 extern __host__ cudaError_t CUDARTAPI cudaDeviceSetLimit(enum cudaLimit limit,
28 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
36 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
44 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
53 extern __host__ cudaError_t CUDARTAPI
61 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
69 extern __host__ cudaError_t CUDARTAPI
77 extern __host__ cudaError_t CUDARTAPI
[all …]
Dcuda_runtime_11_0.inc5 extern __host__ cudaError_t CUDARTAPI cudaDeviceReset(void) {
12 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
20 extern __host__ cudaError_t CUDARTAPI cudaDeviceSetLimit(enum cudaLimit limit,
28 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
36 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
44 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
53 extern __host__ cudaError_t CUDARTAPI
61 extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
69 extern __host__ cudaError_t CUDARTAPI
77 extern __host__ cudaError_t CUDARTAPI
[all …]
/external/clang/test/CodeGenCUDA/
Dfunction-overload.cu17 __host__ s_cd_dh() { x = 11; } in s_cd_dh()
19 __host__ ~s_cd_dh() { x = 21; } in ~s_cd_dh()
24 __host__ __device__ s_cd_hd() { x = 31; } in s_cd_hd()
25 __host__ __device__ ~s_cd_hd() { x = 32; } in ~s_cd_hd()
32 __host__

12345