/external/clang/test/SemaCUDA/ |
D | function-overload.cu | 35 __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 …]
|
D | 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}}
|
D | function-target.cu | 6 __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);
|
D | overloaded-delete.cu | 9 __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()
|
D | addr-of-overloaded-fn.cu | 8 __host__ void overload() {} in overload() 11 __host__ __device__ void test_hd() { in test_hd() 19 __host__ void test_host() { in test_host()
|
D | implicit-member-target.cu | 57 __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;
|
D | host-device-constexpr.cu | 18 __host__ constexpr int HostOnly() { return 0; } in HostOnly() 47 __host__ void HostFn() { in HostFn() 63 __host__ __device__ void HostDeviceFn() { in HostDeviceFn()
|
D | call-overloaded-destructor.cu | 9 __host__ ~S() {} in ~S() 13 __host__ __device__ void test() { in test()
|
/external/tensorflow/tensorflow/core/util/ |
D | transform_output_iterator.h | 34 __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 …]
|
D | permutation_input_iterator.h | 48 __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 …]
|
D | permutation_output_iterator.h | 48 __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 …]
|
D | cuda_kernel_helper.h | 34 __host__ __device__ inline tensorflow::bfloat16 CudaLdg( in CudaLdg() 42 __host__ __device__ inline T ldg(const T* ptr) { in ldg() 47 __host__ __device__ inline const T& tf_min(const T& x, const T& y) { in tf_min() 52 __host__ __device__ inline const T& tf_max(const T& x, const T& y) { in tf_max() 57 __host__ __device__ inline float tf_min(float x, float y) { in tf_min() 60 __host__ __device__ inline double tf_min(double x, double y) { in tf_min() 63 __host__ __device__ inline float tf_max(float x, float y) { in tf_max() 66 __host__ __device__ inline double tf_max(double x, double y) { in tf_max()
|
/external/clang/test/CodeGenCUDA/ |
D | function-overload.cu | 17 __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__
|
D | convergent.cu | 24 __host__ __device__ void baz(); 25 __host__ __device__ void bar() { in bar()
|
D | host-device-calls-host.cu | 10 __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()
|
D | filter-decl.cu | 34 __host__ void explicithostonlyfunc(void) {} in explicithostonlyfunc() 42 __host__ __device__ void hostdevicefunc(void) {} in hostdevicefunc()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | reduction_gpu_kernels.cu.h | 45 __host__ __device__ T operator()(const T& a) const { in operator() 52 __host__ __device__ T operator()(const T& a, const T& b) const { in operator() 61 __host__ __device__ std::complex<float> operator()( 71 __host__ __device__ std::complex<double> operator()( 81 __host__ __device__ T operator()(const T& a, const T& b) const { 90 __host__ __device__ std::complex<float> operator()( 100 __host__ __device__ std::complex<double> operator()( 110 __host__ __device__ T operator()(const T& a) const { 119 __host__ __device__ explicit DividesBy(T divisor) : divisor(divisor) {} 121 __host__ __device__ outT operator()(const T& x) const { return x / divisor; } [all …]
|
D | softmax_op_gpu.cu.cc | 38 __device__ __host__ EIGEN_STRONG_INLINE 43 __device__ __host__ EIGEN_STRONG_INLINE 50 __device__ __host__ EIGEN_STRONG_INLINE float strict_cast<float, Eigen::half>( in strict_cast() 56 __device__ __host__ EIGEN_STRONG_INLINE Eigen::half 98 __host__ __device__ SubtractAndExpFunctor(const T* logits, in SubtractAndExpFunctor() 103 __host__ __device__ U operator()(const int gid) const { in operator ()()
|
D | scan_ops_gpu.h | 51 __host__ __device__ MapIndexToLocation(int dimx, int dimy, int dimz, 55 __host__ __device__ int operator()(int id) const { in operator() 110 __host__ __device__ T operator()(const T& a, const T& b) const { in operator() 117 __host__ __device__ T operator()(const T& a, const T& b) const { in operator() 142 __host__ __device__ U operator()( in operator() 148 __host__ __device__ U operator()( in operator()
|
D | dynamic_partition_op_gpu.cu.cc | 131 __host__ __device__ __forceinline__ 136 __host__ __device__ __forceinline__ int32 operator=(int32 val) { in operator =() 146 __host__ __device__ __forceinline__ BoundedOutputIterator(int32* ptr, in BoundedOutputIterator() 151 __host__ __device__ __forceinline__ 156 __host__ __device__ __forceinline__ reference operator*() const { in operator *() 161 __host__ __device__ __forceinline__ reference operator[](int32 n) const { in operator []() 166 __host__ __device__ __forceinline__ self_type operator+(int32 n) const { in operator +() 172 __host__ __device__ __forceinline__ self_type operator-(int32 n) const { in operator -()
|
/external/swiftshader/third_party/llvm-7.0/llvm/docs/ |
D | CompileCudaWithLLVM.rst | 174 ``std::complex`` in ``__device__`` code, but it often works in ``__host__ 262 * Compile the input ``.cu`` file for device, using clang. ``__host__`` code 292 Overloading Based on ``__host__`` and ``__device__`` Attributes 295 Let "H", "D", and "HD" stand for "``__host__`` functions", "``__device__`` 296 functions", and "``__host__ __device__`` functions", respectively. Functions 304 __host__ void foo() {} 313 __host__ void foo(int) {} 316 In clang, the ``__host__`` and ``__device__`` attributes are part of a 323 __host__ void foo() {} 332 __host__ __device__ void foo() {} [all …]
|
/external/clang/test/SemaCUDA/Inputs/ |
D | 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) {} in x()
|
/external/clang/test/PCH/Inputs/ |
D | 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) {} in x()
|
/external/clang/test/CodeGenCUDA/Inputs/ |
D | 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) {} in x()
|
/external/clang/lib/Headers/ |
D | __clang_cuda_runtime_wrapper.h | 129 #define __host__ macro 136 #define __host__ UNEXPECTED_HOST_ATTRIBUTE macro 192 #define __host__ macro
|