-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PTX: Add tcgen05 instructions (#3607)
* ptx: Add tcgen05.alloc * ptx: Add tcgen05.commit * ptx: Add tcgen05.cp * ptx: Add tcgen05.fence * ptx: Add tcgen05.ld * ptx: Add tcgen05.mma * ptx: Add tcgen05.mma.ws * ptx: Add tcgen05.shift * ptx: Add tcgen05.st * ptx: Add tcgen05.wait * fix docs --------- Co-authored-by: Allard Hendriksen <[email protected]>
- Loading branch information
1 parent
0f52dd5
commit 38983eb
Showing
32 changed files
with
700 additions
and
0 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-tcgen05-alloc: | ||
|
||
tcgen05.alloc | ||
============= | ||
|
||
- PTX ISA: | ||
`tcgen05.alloc <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#tensorcore-5th-generation-instructions-tcgen05-alloc-tcgen05-dealloc-tcgen05-relinquish-alloc-permit>`__ | ||
|
||
.. include:: generated/tcgen05_alloc.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-tcgen05-commit: | ||
|
||
tcgen05.commit | ||
============== | ||
|
||
- PTX ISA: | ||
`tcgen05.commit <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#tensorcore-5th-generation-instructions-tcgen05-commit>`__ | ||
|
||
.. include:: generated/tcgen05_commit.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-tcgen05-cp: | ||
|
||
tcgen05.cp | ||
========== | ||
|
||
- PTX ISA: | ||
`tcgen05.cp <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#tensorcore-5th-generation-instructions-tcgen05-cp>`__ | ||
|
||
.. include:: generated/tcgen05_cp.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-tcgen05-fence: | ||
|
||
tcgen05.fence | ||
============= | ||
|
||
- PTX ISA: | ||
`tcgen05.fence <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#tensorcore-5th-generation-instructions-tcgen05-fence>`__ | ||
|
||
.. include:: generated/tcgen05_fence.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-tcgen05-ld: | ||
|
||
tcgen05.ld | ||
========== | ||
|
||
- PTX ISA: | ||
`tcgen05.ld <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#tensorcore-5th-generation-instructions-tcgen05-ld>`__ | ||
|
||
.. include:: generated/tcgen05_ld.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-tcgen05-mma: | ||
|
||
tcgen05.mma | ||
=========== | ||
|
||
- PTX ISA: | ||
`tcgen05.mma <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#tensorcore-5th-generation-instructions-tcgen05-mma>`__ | ||
|
||
.. include:: generated/tcgen05_mma.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-tcgen05-mma-ws: | ||
|
||
tcgen05.mma.ws | ||
============== | ||
|
||
- PTX ISA: | ||
`tcgen05.mma.ws <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#tensorcore-5th-generation-instructions-tcgen05-mma-ws>`__ | ||
|
||
.. include:: generated/tcgen05_mma_ws.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-tcgen05-shift: | ||
|
||
tcgen05.shift | ||
============= | ||
|
||
- PTX ISA: | ||
`tcgen05.shift <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#tensorcore-5th-generation-instructions-tcgen05-shift>`__ | ||
|
||
.. include:: generated/tcgen05_shift.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-tcgen05-st: | ||
|
||
tcgen05.st | ||
========== | ||
|
||
- PTX ISA: | ||
`tcgen05.st <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#tensorcore-5th-generation-instructions-tcgen05-st>`__ | ||
|
||
.. include:: generated/tcgen05_st.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-tcgen05-wait: | ||
|
||
tcgen05.wait | ||
============ | ||
|
||
- PTX ISA: | ||
`tcgen05.wait <https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#tensorcore-5th-generation-instructions-tcgen05-wait>`__ | ||
|
||
.. include:: generated/tcgen05_wait.rst |
37 changes: 37 additions & 0 deletions
37
libcudacxx/include/cuda/__ptx/instructions/tcgen05_alloc.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_TCGEN05_ALLOC_H_ | ||
#define _CUDA_PTX_TCGEN05_ALLOC_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/tcgen05_alloc.h> | ||
|
||
_LIBCUDACXX_END_NAMESPACE_CUDA_PTX | ||
|
||
#endif // _CUDA_PTX_TCGEN05_ALLOC_H_ |
37 changes: 37 additions & 0 deletions
37
libcudacxx/include/cuda/__ptx/instructions/tcgen05_commit.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_TCGEN05_COMMIT_H_ | ||
#define _CUDA_PTX_TCGEN05_COMMIT_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/tcgen05_commit.h> | ||
|
||
_LIBCUDACXX_END_NAMESPACE_CUDA_PTX | ||
|
||
#endif // _CUDA_PTX_TCGEN05_COMMIT_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_TCGEN05_CP_H_ | ||
#define _CUDA_PTX_TCGEN05_CP_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/tcgen05_cp.h> | ||
|
||
_LIBCUDACXX_END_NAMESPACE_CUDA_PTX | ||
|
||
#endif // _CUDA_PTX_TCGEN05_CP_H_ |
37 changes: 37 additions & 0 deletions
37
libcudacxx/include/cuda/__ptx/instructions/tcgen05_fence.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_TCGEN05_FENCE_H_ | ||
#define _CUDA_PTX_TCGEN05_FENCE_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/tcgen05_fence.h> | ||
|
||
_LIBCUDACXX_END_NAMESPACE_CUDA_PTX | ||
|
||
#endif // _CUDA_PTX_TCGEN05_FENCE_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_TCGEN05_LD_H_ | ||
#define _CUDA_PTX_TCGEN05_LD_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/tcgen05_ld.h> | ||
|
||
_LIBCUDACXX_END_NAMESPACE_CUDA_PTX | ||
|
||
#endif // _CUDA_PTX_TCGEN05_LD_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_TCGEN05_MMA_H_ | ||
#define _CUDA_PTX_TCGEN05_MMA_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/tcgen05_mma.h> | ||
|
||
_LIBCUDACXX_END_NAMESPACE_CUDA_PTX | ||
|
||
#endif // _CUDA_PTX_TCGEN05_MMA_H_ |
37 changes: 37 additions & 0 deletions
37
libcudacxx/include/cuda/__ptx/instructions/tcgen05_mma_ws.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_TCGEN05_MMA_WS_H_ | ||
#define _CUDA_PTX_TCGEN05_MMA_WS_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/tcgen05_mma_ws.h> | ||
|
||
_LIBCUDACXX_END_NAMESPACE_CUDA_PTX | ||
|
||
#endif // _CUDA_PTX_TCGEN05_MMA_WS_H_ |
Oops, something went wrong.