-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PTX: add bfind, exit and trap (#3627)
* Re-enable check for orphaned PTX docs * Regenerate PTX docs, includes and tests Manually excluding: - mapa - elect.sync - barrier.cluster.aligned - ldmatrix * Mark add_ptx_instruction.py executable * Add bfind, exit and trap * Fix newline
- Loading branch information
1 parent
6586186
commit 34af9a4
Showing
22 changed files
with
676 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. _libcudacxx-ptx-instructions-bfind: | ||
|
||
bfind | ||
===== | ||
|
||
- PTX ISA: | ||
`bfind <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#integer-arithmetic-instructions-bfind>`__ | ||
|
||
.. include:: generated/bfind.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. _libcudacxx-ptx-instructions-exit: | ||
|
||
exit | ||
==== | ||
|
||
- PTX ISA: | ||
`exit <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#control-flow-instructions-exit>`__ | ||
|
||
.. include:: generated/exit.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
.. | ||
This file was automatically generated. Do not edit. | ||
bfind.u32 | ||
^^^^^^^^^ | ||
.. code:: cuda | ||
// bfind.u32 dest, a_reg; // PTX ISA 20, SM_50 | ||
template <typename = void> | ||
__device__ static inline uint32_t bfind( | ||
uint32_t a_reg); | ||
bfind.shiftamt.u32 | ||
^^^^^^^^^^^^^^^^^^ | ||
.. code:: cuda | ||
// bfind.shiftamt.u32 dest, a_reg; // PTX ISA 20, SM_50 | ||
template <typename = void> | ||
__device__ static inline uint32_t bfind_shiftamt( | ||
uint32_t a_reg); | ||
bfind.u64 | ||
^^^^^^^^^ | ||
.. code:: cuda | ||
// bfind.u64 dest, a_reg; // PTX ISA 20, SM_50 | ||
template <typename = void> | ||
__device__ static inline uint32_t bfind( | ||
uint64_t a_reg); | ||
bfind.shiftamt.u64 | ||
^^^^^^^^^^^^^^^^^^ | ||
.. code:: cuda | ||
// bfind.shiftamt.u64 dest, a_reg; // PTX ISA 20, SM_50 | ||
template <typename = void> | ||
__device__ static inline uint32_t bfind_shiftamt( | ||
uint64_t a_reg); | ||
bfind.s32 | ||
^^^^^^^^^ | ||
.. code:: cuda | ||
// bfind.s32 dest, a_reg; // PTX ISA 20, SM_50 | ||
template <typename = void> | ||
__device__ static inline uint32_t bfind( | ||
int32_t a_reg); | ||
bfind.shiftamt.s32 | ||
^^^^^^^^^^^^^^^^^^ | ||
.. code:: cuda | ||
// bfind.shiftamt.s32 dest, a_reg; // PTX ISA 20, SM_50 | ||
template <typename = void> | ||
__device__ static inline uint32_t bfind_shiftamt( | ||
int32_t a_reg); | ||
bfind.s64 | ||
^^^^^^^^^ | ||
.. code:: cuda | ||
// bfind.s64 dest, a_reg; // PTX ISA 20, SM_50 | ||
template <typename = void> | ||
__device__ static inline uint32_t bfind( | ||
int64_t a_reg); | ||
bfind.shiftamt.s64 | ||
^^^^^^^^^^^^^^^^^^ | ||
.. code:: cuda | ||
// bfind.shiftamt.s64 dest, a_reg; // PTX ISA 20, SM_50 | ||
template <typename = void> | ||
__device__ static inline uint32_t bfind_shiftamt( | ||
int64_t a_reg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.. | ||
This file was automatically generated. Do not edit. | ||
exit | ||
^^^^ | ||
.. code:: cuda | ||
// exit; // PTX ISA 10, SM_50 | ||
template <typename = void> | ||
__device__ static inline void exit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.. | ||
This file was automatically generated. Do not edit. | ||
trap | ||
^^^^ | ||
.. code:: cuda | ||
// trap; // PTX ISA 10, SM_50 | ||
template <typename = void> | ||
__device__ static inline void trap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. _libcudacxx-ptx-instructions-trap: | ||
|
||
trap | ||
==== | ||
|
||
- PTX ISA: | ||
`trap <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#miscellaneous-instructions-trap>`__ | ||
|
||
.. include:: generated/trap.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// -*- C++ -*- | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of libcu++, the C++ Standard Library for your entire system, | ||
// under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef _CUDA_PTX_BFIND_H_ | ||
#define _CUDA_PTX_BFIND_H_ | ||
|
||
#include <cuda/std/detail/__config> | ||
|
||
#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 // no system header | ||
|
||
#include <cuda/__ptx/ptx_dot_variants.h> | ||
#include <cuda/__ptx/ptx_helper_functions.h> | ||
#include <cuda/std/cstdint> | ||
|
||
#include <nv/target> // __CUDA_MINIMUM_ARCH__ and friends | ||
|
||
_LIBCUDACXX_BEGIN_NAMESPACE_CUDA_PTX | ||
|
||
#include <cuda/__ptx/instructions/generated/bfind.h> | ||
|
||
_LIBCUDACXX_END_NAMESPACE_CUDA_PTX | ||
|
||
#endif // _CUDA_PTX_BFIND_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// -*- C++ -*- | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Part of libcu++, the C++ Standard Library for your entire system, | ||
// under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef _CUDA_PTX_EXIT_H_ | ||
#define _CUDA_PTX_EXIT_H_ | ||
|
||
#include <cuda/std/detail/__config> | ||
|
||
#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 // no system header | ||
|
||
#include <cuda/__ptx/ptx_dot_variants.h> | ||
#include <cuda/__ptx/ptx_helper_functions.h> | ||
#include <cuda/std/cstdint> | ||
|
||
#include <nv/target> // __CUDA_MINIMUM_ARCH__ and friends | ||
|
||
_LIBCUDACXX_BEGIN_NAMESPACE_CUDA_PTX | ||
|
||
#include <cuda/__ptx/instructions/generated/exit.h> | ||
|
||
_LIBCUDACXX_END_NAMESPACE_CUDA_PTX | ||
|
||
#endif // _CUDA_PTX_EXIT_H_ |
Oops, something went wrong.