| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| #if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| #if defined(_MSC_VER)
|
| #pragma message("crt/sm_80_rt.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| #else
|
| #warning "crt/sm_80_rt.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| #endif
|
| #define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| #define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_80_RT_H__
|
| #endif
|
|
|
| #if !defined(__SM_80_RT_H__)
|
| #define __SM_80_RT_H__
|
|
|
| #if defined(__CUDACC_RTC__)
|
| #define __SM_80_RT_DECL__ __host__ __device__
|
| #elif defined(_NVHPC_CUDA)
|
| #define __SM_80_RT_DECL__ extern __device__ __cudart_builtin__
|
| #else
|
| #define __SM_80_RT_DECL__ static __device__ __inline__
|
| #endif
|
|
|
| #if defined(__cplusplus) && defined(__CUDACC__)
|
|
|
| #if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 800
|
|
|
| |
| |
| |
| |
|
|
|
|
| #include "builtin_types.h"
|
| #include "device_types.h"
|
| #include "host_defines.h"
|
|
|
| #if !defined(__CUDA_ARCH__) && !defined(_NVHPC_CUDA)
|
| #define __DEF_IF_HOST { }
|
| #else
|
| #define __DEF_IF_HOST ;
|
| #endif
|
|
|
|
|
|
|
| #define EXCLUDE_FROM_RTC
|
| |
| |
|
|
| __SM_80_RT_DECL__ unsigned __reduce_add_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
| __SM_80_RT_DECL__ unsigned __reduce_min_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
| __SM_80_RT_DECL__ unsigned __reduce_max_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
|
|
| __SM_80_RT_DECL__ int __reduce_add_sync(unsigned mask, int value) __DEF_IF_HOST
|
| __SM_80_RT_DECL__ int __reduce_min_sync(unsigned mask, int value) __DEF_IF_HOST
|
| __SM_80_RT_DECL__ int __reduce_max_sync(unsigned mask, int value) __DEF_IF_HOST
|
|
|
| __SM_80_RT_DECL__ unsigned __reduce_and_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
| __SM_80_RT_DECL__ unsigned __reduce_or_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
| __SM_80_RT_DECL__ unsigned __reduce_xor_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
|
|
| #undef EXCLUDE_FROM_RTC
|
|
|
|
|
| extern "C" {
|
| inline __device__ void *__nv_associate_access_property(const void *ptr,
|
| unsigned long long property) {
|
| extern __device__ void *__nv_associate_access_property_impl(const void *,
|
| unsigned long long);
|
| return __nv_associate_access_property_impl(ptr, property);
|
| }
|
|
|
| inline __device__ void __nv_memcpy_async_shared_global_4(void *dst,
|
| const void *src,
|
| unsigned src_size) {
|
| extern __device__ void __nv_memcpy_async_shared_global_4_impl(void *,
|
| const void *,
|
| unsigned);
|
| __nv_memcpy_async_shared_global_4_impl(dst, src, src_size);
|
| }
|
|
|
| inline __device__ void __nv_memcpy_async_shared_global_8(void *dst,
|
| const void *src,
|
| unsigned src_size) {
|
| extern __device__ void __nv_memcpy_async_shared_global_8_impl(void *,
|
| const void *,
|
| unsigned);
|
| __nv_memcpy_async_shared_global_8_impl(dst, src, src_size);
|
| }
|
|
|
| inline __device__ void __nv_memcpy_async_shared_global_16(void *dst,
|
| const void *src,
|
| unsigned src_size) {
|
| extern __device__ void __nv_memcpy_async_shared_global_16_impl(void *,
|
| const void *,
|
| unsigned);
|
| __nv_memcpy_async_shared_global_16_impl(dst, src, src_size);
|
| }
|
|
|
| }
|
| #endif
|
|
|
| #endif
|
|
|
| #undef __DEF_IF_HOST
|
| #undef __SM_80_RT_DECL__
|
|
|
| #if (!defined(__CUDACC_RTC__) && defined(__CUDA_ARCH__)) || defined(_NVHPC_CUDA)
|
| #include "sm_80_rt.hpp"
|
| #endif
|
|
|
| #endif
|
|
|
| #if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_80_RT_H__)
|
| #undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| #undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_80_RT_H__
|
| #endif
|
|
|