40 #ifndef __CLANG_CUDA_RUNTIME_WRAPPER_H__
41 #define __CLANG_CUDA_RUNTIME_WRAPPER_H__
43 #if defined(__CUDA__) && defined(__clang__)
52 #pragma push_macro("__THROW")
53 #pragma push_macro("__CUDA_ARCH__")
59 #if !defined(CUDA_VERSION)
60 #error "cuda.h did not define CUDA_VERSION"
61 #elif CUDA_VERSION < 7000 || CUDA_VERSION > 7050
62 #error "Unsupported CUDA version!"
68 #define __CUDA_ARCH__ 350
75 #define __DEVICE_LAUNCH_PARAMETERS_H__
80 #define __DEVICE_FUNCTIONS_H__
81 #define __MATH_FUNCTIONS_H__
87 #define __CUDADEVRT_INTERNAL__
88 #include "host_config.h"
89 #include "host_defines.h"
90 #include "driver_types.h"
91 #include "common_functions.h"
92 #undef __CUDADEVRT_INTERNAL__
96 #include "cuda_runtime.h"
103 #define __nvvm_memcpy(s,d,n,a) __builtin_memcpy(s,d,n)
104 #define __nvvm_memset(d,c,n,a) __builtin_memset(d,c,n)
106 #include "crt/host_runtime.h"
107 #include "crt/device_runtime.h"
111 #undef __cxa_vec_ctor
112 #undef __cxa_vec_cctor
113 #undef __cxa_vec_dtor
114 #undef __cxa_vec_new2
115 #undef __cxa_vec_new3
116 #undef __cxa_vec_delete2
117 #undef __cxa_vec_delete
118 #undef __cxa_vec_delete3
119 #undef __cxa_pure_virtual
126 #pragma push_macro("__host__")
128 #define __CUDACC_RTC__
129 #include "device_functions_decls.h"
130 #undef __CUDACC_RTC__
134 #define __host__ UNEXPECTED_HOST_ATTRIBUTE
140 #pragma push_macro("__forceinline__")
141 #define __forceinline__ __device__ __inline__ __attribute__((always_inline))
142 #include "device_functions.hpp"
143 #include "math_functions.hpp"
144 #include "math_functions_dbl_ptx3.hpp"
145 #pragma pop_macro("__forceinline__")
149 #undef __MATH_FUNCTIONS_HPP__
151 #include "math_functions.hpp"
155 static inline float rsqrt(
float a) {
return rsqrtf(a); }
156 static inline float rcbrt(
float a) {
return rcbrtf(a); }
157 static inline float sinpi(
float a) {
return sinpif(a); }
158 static inline float cospi(
float a) {
return cospif(a); }
159 static inline void sincospi(
float a,
float *
b,
float *c) {
160 return sincospi(a, b, c);
162 static inline float erfcinv(
float a) {
return erfcinvf(a); }
163 static inline float normcdfinv(
float a) {
return normcdfinvf(a); }
164 static inline float normcdf(
float a) {
return normcdff(a); }
165 static inline float erfcx(
float a) {
return erfcxf(a); }
169 static inline __device__
void __brkpt(
int c) { __brkpt(); }
180 #undef __DEVICE_FUNCTIONS_HPP__
181 #include "device_functions.hpp"
182 #include "device_atomic_functions.hpp"
183 #include "sm_20_atomic_functions.hpp"
184 #include "sm_32_atomic_functions.hpp"
185 #include "sm_20_intrinsics.hpp"
188 #include "sm_30_intrinsics.h"
189 #include "sm_32_intrinsics.hpp"
190 #undef __MATH_FUNCTIONS_HPP__
191 #include "math_functions.hpp"
192 #pragma pop_macro("__host__")
194 #include "texture_indirect_functions.h"
197 #pragma pop_macro("__CUDA_ARCH__")
198 #pragma pop_macro("__THROW")
205 #if defined(__CUDA_ARCH__)
209 extern "C" __device__
__attribute__((
const)) int __nvvm_reflect(const
void *);
210 static __device__
__attribute__((used))
int __nvvm_reflect_anchor() {
211 return __nvvm_reflect(
"NONE");
216 #endif // __CLANG_CUDA_RUNTIME_WRAPPER_H__
int32_t int16_t b
Definition: IMU.cpp:172
char __v64qi __attribute__((__vector_size__(64)))
Definition: avx512bwintrin.h:33