| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| #ifndef __CCCL_PTX_ISA_H_ |
| #define __CCCL_PTX_ISA_H_ |
|
|
| #if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC) |
| # pragma GCC system_header |
| #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG) |
| # pragma clang system_header |
| #elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC) |
| # pragma system_header |
| #endif |
|
|
| #include <nv/target> |
|
|
| |
| |
| |
| |
| |
| |
|
|
| |
| |
| |
| #if (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ > 12)) || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 830ULL |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 12 && __CUDACC_VER_MINOR__ >= 3)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 830ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 12 && __CUDACC_VER_MINOR__ >= 2)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 820ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 12 && __CUDACC_VER_MINOR__ >= 1)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 810ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 12 && __CUDACC_VER_MINOR__ >= 0)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 800ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 11 && __CUDACC_VER_MINOR__ >= 8)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 780ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 11 && __CUDACC_VER_MINOR__ >= 7)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 770ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 11 && __CUDACC_VER_MINOR__ >= 6)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 760ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 11 && __CUDACC_VER_MINOR__ >= 5)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 750ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 11 && __CUDACC_VER_MINOR__ >= 4)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 740ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 11 && __CUDACC_VER_MINOR__ >= 3)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 730ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 11 && __CUDACC_VER_MINOR__ >= 2)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 720ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 11 && __CUDACC_VER_MINOR__ >= 1)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 710ULL |
| |
| #elif (defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ >= 11 && __CUDACC_VER_MINOR__ >= 0)) \ |
| || (!defined(__CUDACC_VER_MAJOR__)) |
| # define __cccl_ptx_isa 700ULL |
| |
| #else |
| # define __cccl_ptx_isa 0ULL |
| #endif |
|
|
| |
| |
| |
| |
| |
| #if __cccl_ptx_isa >= 800 |
| #if (!defined(__CUDA_MINIMUM_ARCH__)) \ |
| || (defined(__CUDA_MINIMUM_ARCH__) && 900 <= __CUDA_MINIMUM_ARCH__) |
| # define __cccl_lib_local_barrier_arrive_tx |
| # define __cccl_lib_experimental_ctk12_cp_async_exposure |
| #endif |
| #endif |
|
|
| #endif |
|
|