/external/clang/test/SemaCUDA/ |
function-target.cu | 6 __host__ void h1h(void); 7 __device__ void h1d(void); // expected-note {{candidate function not viable: call to __device__ function from __host__ function}} 8 __host__ __device__ void h1hd(void); 12 __device__ h1ds(); // expected-note {{candidate constructor not viable: call to __device__ function from __host__ function}} 15 __host__ void h1(void) { 23 __host__ void d1h(void); // expected-note {{candidate function not viable: call to __host__ function from __device__ function}} 25 __host__ __device__ void d1hd(void);
|
function-overload.cu | 35 __host__ void hh() {} // expected-note {{previous definition is here}} 39 __host__ HostReturnTy dh() { return HostReturnTy(); } 43 __host__ __device__ int hdh() { return 0; } // expected-note {{previous definition is here}} 44 __host__ int hdh() { return 0; } // expected-error {{redefinition of 'hdh'}} 46 __host__ int hhd() { return 0; } // expected-note {{previous definition is here}} 47 __host__ __device__ int hhd() { return 0; } // expected-error {{redefinition of 'hhd'}} 51 __host__ __device__ int hdd() { return 0; } // expected-note {{previous definition is here}} 55 __host__ __device__ int dhd() { return 0; } // expected-error {{redefinition of 'dhd'}} 60 extern "C" __host__ int chh() { return 0; } // expected-note {{previous definition is here}} 65 extern "C" __host__ HostReturnTy cdh() { return HostReturnTy(); [all...] |
overloaded-delete.cu | 9 __host__ static void operator delete(void*, size_t) {} 13 __host__ __device__ void test(S* s) { 19 __host__ void operator delete(void *ptr) {} 22 __host__ __device__ void test_global_delete(int *ptr) {
|
call-overloaded-destructor.cu | 9 __host__ ~S() {} 13 __host__ __device__ void test() {
|
addr-of-overloaded-fn.cu | 8 __host__ void overload() {} 11 __host__ __device__ void test_hd() { 19 __host__ void test_host() {
|
bad-attributes.cu | 16 __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}}
|
implicit-copy.cu | 14 // expected-note@-3 2 {{candidate function (the implicit copy assignment operator) not viable: call to __host__ function from __device__ function}} 15 // expected-note@-4 2 {{candidate function (the implicit move assignment operator) not viable: call to __host__ function from __device__ function}} 20 // expected-note@-3 2 {{candidate function (the implicit copy assignment operator) not viable: call to __device__ function from __host__ function}} 21 // expected-note@-4 2 {{candidate function (the implicit move assignment operator) not viable: call to __device__ function from __host__ function}}
|
host-device-constexpr.cu | 18 __host__ constexpr int HostOnly() { return 0; } 40 // expected-error@-1 {{constexpr function 'NonSysHdrOverload' without __host__ or __device__ attributes}} 45 // expected-note@-1 {{call to __host__ function from __device__ function}} 47 __host__ void HostFn() { 63 __host__ __device__ void HostDeviceFn() {
|
implicit-member-target.cu | 14 // an error when calling it from a __device__ function, but not from a __host__ 19 // expected-note@-3 {{call to __host__ function from __device__}} 41 // expected-note@-3 {{call to __device__ function from __host__}} 57 __host__ A3_with_device_ctors() {} 63 // expected-note@-2 2{{call to __device__ function from __host__ function}} 69 // here is __host__ 85 // expected-note@-4 {{call to __host__ function from __device__}} 101 __host__ A5_copy_ctor_constness() {} 102 __host__ A5_copy_ctor_constness(A5_copy_ctor_constness&) {} 108 // expected-note@-3 {{candidate constructor (the implicit copy constructor) not viable: call to __host__ function from __device__ function} [all...] |
builtins.cu | 22 // expected-error@-1 {{reference to __device__ function '__nvvm_read_ptx_sreg_tid_x' in __host__ function}} 28 int y = __builtin_ia32_rdtsc(); // expected-error {{reference to __host__ function '__builtin_ia32_rdtsc' in __device__ function}}
|
no-host-device-constexpr.cu | 17 void __host__ foo() {
|
/external/clang/test/CodeGenCUDA/Inputs/ |
cuda.h | 8 #define __host__ __attribute__((host)) macro 14 __host__ __device__ dim3(unsigned x, unsigned y = 1, unsigned z = 1) : x(x), y(y), z(z) {}
|
/external/clang/test/PCH/Inputs/ |
cuda.h | 8 #define __host__ __attribute__((host)) macro 14 __host__ __device__ dim3(unsigned x, unsigned y = 1, unsigned z = 1) : x(x), y(y), z(z) {}
|
/external/clang/test/SemaCUDA/Inputs/ |
cuda.h | 11 #define __host__ __attribute__((host)) macro 17 __host__ __device__ dim3(unsigned x, unsigned y = 1, unsigned z = 1) : x(x), y(y), z(z) {}
|
/external/clang/test/CodeGenCUDA/ |
host-device-calls-host.cu | 10 __host__ __device__ void hd_function_a() { 19 __host__ __device__ void hd_function_b(bool b) { if (b) host_function(); }
|
function-overload.cu | 17 __host__ s_cd_dh() { x = 11; } 19 __host__ ~s_cd_dh() { x = 21; } 24 __host__ __device__ s_cd_hd() { x = 31; } 25 __host__ __device__ ~s_cd_hd() { x = 32; } 32 __host__
|
/frameworks/compile/libbcc/lib/ |
CompilerConfig.cpp | 31 #if defined (PROVIDE_X86_CODEGEN) && !defined(__HOST__) 50 #endif // (PROVIDE_X86_CODEGEN) && !defined(__HOST__) 112 #if defined(__HOST__) || defined(ARCH_ARM_HAVE_VFP) 114 #if !defined(__HOST__) && !defined(ARCH_ARM_HAVE_VFP_D32) 116 #endif // !__HOST__ && !ARCH_ARM_HAVE_VFP_D32 117 #endif // __HOST__ || ARCH_ARM_HAVE_VFP 119 #if defined(__HOST__) || defined(ARCH_ARM_HAVE_NEON) 124 #endif // __HOST__ || ARCH_ARM_HAVE_NEON 127 #if defined(__HOST__) || defined(ARCH_ARM_HAVE_NEON) 129 #endif // __HOST__ || ARCH_ARM_HAVE_NEO [all...] |
/prebuilts/clang/host/darwin-x86/clang-2812033/lib64/clang/3.8/include/ |
__clang_cuda_runtime_wrapper.h | 122 // attribute only. Alas they come either as __host__ __device__ or 124 // which produces HD variant and undef __host__ which gives us desided 126 #pragma push_macro("__host__") 127 #define __host__ macro 132 // Temporarily poison __host__ macro to ensure it's not used by any of 134 #define __host__ UNEXPECTED_HOST_ATTRIBUTE macro 172 // a lot of thins get declared/defined with __host__ attribute which 177 #define __host__ macro 192 #pragma pop_macro("__host__")
|
/prebuilts/clang/host/linux-x86/clang-2812033/lib64/clang/3.8/include/ |
__clang_cuda_runtime_wrapper.h | 122 // attribute only. Alas they come either as __host__ __device__ or 124 // which produces HD variant and undef __host__ which gives us desided 126 #pragma push_macro("__host__") 127 #define __host__ macro 132 // Temporarily poison __host__ macro to ensure it's not used by any of 134 #define __host__ UNEXPECTED_HOST_ATTRIBUTE macro 172 // a lot of thins get declared/defined with __host__ attribute which 177 #define __host__ macro 192 #pragma pop_macro("__host__")
|
/prebuilts/clang/host/darwin-x86/clang-3859424/lib64/clang/4.0/include/cuda_wrappers/ |
complex | 27 // Wrapper around <complex> that forces its functions to be __host__ 53 // __host__ __device__ void complex<float> sin(const complex<float>& x) { 59 // void __host__ __device__ complex<T> sin(const complex<T>& x) { 65 // __host__ code to sin() will still resolve to *something*, even if they don't
|
/prebuilts/clang/host/darwin-x86/clang-3957855/lib64/clang/5.0/include/cuda_wrappers/ |
complex | 27 // Wrapper around <complex> that forces its functions to be __host__ 53 // __host__ __device__ void complex<float> sin(const complex<float>& x) { 59 // void __host__ __device__ complex<T> sin(const complex<T>& x) { 65 // __host__ code to sin() will still resolve to *something*, even if they don't
|
/prebuilts/clang/host/darwin-x86/clang-3960126/lib64/clang/5.0/include/cuda_wrappers/ |
complex | 27 // Wrapper around <complex> that forces its functions to be __host__ 53 // __host__ __device__ void complex<float> sin(const complex<float>& x) { 59 // void __host__ __device__ complex<T> sin(const complex<T>& x) { 65 // __host__ code to sin() will still resolve to *something*, even if they don't
|
/prebuilts/clang/host/darwin-x86/clang-3977809/lib64/clang/5.0/include/cuda_wrappers/ |
complex | 27 // Wrapper around <complex> that forces its functions to be __host__ 53 // __host__ __device__ void complex<float> sin(const complex<float>& x) { 59 // void __host__ __device__ complex<T> sin(const complex<T>& x) { 65 // __host__ code to sin() will still resolve to *something*, even if they don't
|
/prebuilts/clang/host/darwin-x86/clang-4053586/lib64/clang/5.0/include/cuda_wrappers/ |
complex | 27 // Wrapper around <complex> that forces its functions to be __host__ 53 // __host__ __device__ void complex<float> sin(const complex<float>& x) { 59 // void __host__ __device__ complex<T> sin(const complex<T>& x) { 65 // __host__ code to sin() will still resolve to *something*, even if they don't
|
/prebuilts/clang/host/linux-x86/clang-3859424/lib64/clang/4.0/include/cuda_wrappers/ |
complex | 27 // Wrapper around <complex> that forces its functions to be __host__ 53 // __host__ __device__ void complex<float> sin(const complex<float>& x) { 59 // void __host__ __device__ complex<T> sin(const complex<T>& x) { 65 // __host__ code to sin() will still resolve to *something*, even if they don't
|