Home
last modified time | relevance | path

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

/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}}
Dfunction-target.cu6 __host__ void h1h(void);
8 __host__ __device__ void h1hd(void);
15 __host__ void h1(void) { in h1()
23 __host__ void d1h(void); // expected-note {{candidate function not viable: call to __host__ functio…
25 __host__ __device__ void d1hd(void);
Doverloaded-delete.cu9 __host__ static void operator delete(void*, size_t) {} in operator delete()
13 __host__ __device__ void test(S* s) { in test()
19 __host__ void operator delete(void *ptr) {} in operator delete()
22 __host__ __device__ void test_global_delete(int *ptr) { in test_global_delete()
Daddr-of-overloaded-fn.cu8 __host__ void overload() {} in overload()
11 __host__ __device__ void test_hd() { in test_hd()
19 __host__ void test_host() { in test_host()
Dimplicit-member-target.cu57 __host__ A3_with_device_ctors() {} in A3_with_device_ctors()
101 __host__ A5_copy_ctor_constness() {} in A5_copy_ctor_constness()
102 __host__ A5_copy_ctor_constness(A5_copy_ctor_constness&) {} in A5_copy_ctor_constness()
128 __host__ B6_with_defaulted_ctor() = default;
Dhost-device-constexpr.cu18 __host__ constexpr int HostOnly() { return 0; } in HostOnly()
47 __host__ void HostFn() { in HostFn()
63 __host__ __device__ void HostDeviceFn() { in HostDeviceFn()
Dcall-overloaded-destructor.cu9 __host__ ~S() {} in ~S()
13 __host__ __device__ void test() { in test()
Dno-host-device-constexpr.cu17 void __host__ foo() { in foo()
Dmethod-target.cu46 __host__ __device__ void foo4(S4& s) { in foo4()
/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__
Dconvergent.cu24 __host__ __device__ void baz();
25 __host__ __device__ void bar() { in bar()
Dhost-device-calls-host.cu10 __host__ __device__ void hd_function_a() { in hd_function_a()
19 __host__ __device__ void hd_function_b(bool b) { if (b) host_function(); } in hd_function_b()
Dfilter-decl.cu34 __host__ void explicithostonlyfunc(void) {} in explicithostonlyfunc()
42 __host__ __device__ void hostdevicefunc(void) {} in hostdevicefunc()
Dfp-contract.cu26 __host__ __device__ float func(float a, float b, float c) { return a + b * c; } in func()
/external/clang/test/SemaCUDA/Inputs/
Dcuda.h11 #define __host__ __attribute__((host)) macro
17 __host__ __device__ dim3(unsigned x, unsigned y = 1, unsigned z = 1) : x(x), y(y), z(z) {} in x()
/external/clang/test/PCH/Inputs/
Dcuda.h8 #define __host__ __attribute__((host)) macro
14 __host__ __device__ dim3(unsigned x, unsigned y = 1, unsigned z = 1) : x(x), y(y), z(z) {} in x()
/external/clang/test/CodeGenCUDA/Inputs/
Dcuda.h8 #define __host__ __attribute__((host)) macro
14 __host__ __device__ dim3(unsigned x, unsigned y = 1, unsigned z = 1) : x(x), y(y), z(z) {} in x()
/external/clang/lib/Headers/
D__clang_cuda_runtime_wrapper.h129 #define __host__ macro
136 #define __host__ UNEXPECTED_HOST_ATTRIBUTE macro
192 #define __host__ macro
/external/vulkan-validation-layers/libs/glm/detail/
Dsetup.hpp670 # define GLM_CUDA_FUNC_DEF __device__ __host__
671 # define GLM_CUDA_FUNC_DECL __device__ __host__
/external/clang/include/clang/Basic/
DLangOptions.def192 LANGOPT(CUDAHostDeviceConstexpr, 1, 1, "treating unattributed constexpr functions as __host__ __dev…
DDiagnosticSemaKinds.td3446 "%select{__device__|__global__|__host__|__host__ __device__|invalid}1 function from"
3447 " %select{__device__|__global__|__host__|__host__ __device__|invalid}2 function">;
3456 "%select{__device__|__global__|__host__|__host__ __device__}1 and "
3457 "%select{__device__|__global__|__host__|__host__ __device__}2 members">;
6593 "reference to %select{__device__|__global__|__host__|__host__ __device__}0 "
6594 "function %1 in %select{__device__|__global__|__host__|__host__ __device__}2 function">;
6607 "constexpr function '%0' without __host__ or __device__ attributes cannot "
6608 "overload __device__ function with same signature. Add a __host__ "
/external/eigen/Eigen/
DCore39 #define EIGEN_DEVICE_FUNC __host__ __device__
/external/clang/include/clang/Driver/
DCC1Options.td679 HelpText<"Don't treat unattributed constexpr functions as __host__ __device__.">;