diff --git a/docs/libcudacxx/ptx/instructions.rst b/docs/libcudacxx/ptx/instructions.rst index 32db843c28d..ebf6e31f716 100644 --- a/docs/libcudacxx/ptx/instructions.rst +++ b/docs/libcudacxx/ptx/instructions.rst @@ -24,6 +24,7 @@ PTX Instructions instructions/mbarrier_try_wait instructions/red_async instructions/st_async + instructions/st_bulk instructions/tensormap_replace instructions/tensormap_cp_fenceproxy instructions/special_registers diff --git a/docs/libcudacxx/ptx/instructions/st_bulk.rst b/docs/libcudacxx/ptx/instructions/st_bulk.rst new file mode 100644 index 00000000000..64886598909 --- /dev/null +++ b/docs/libcudacxx/ptx/instructions/st_bulk.rst @@ -0,0 +1,9 @@ +.. _libcudacxx-ptx-instructions-st-bulk: + +st.bulk +======= + +- PTX ISA: + `st.bulk `__ + +.. include:: generated/st_bulk.rst diff --git a/libcudacxx/include/cuda/__ptx/instructions/st_bulk.h b/libcudacxx/include/cuda/__ptx/instructions/st_bulk.h new file mode 100644 index 00000000000..686e0ecf166 --- /dev/null +++ b/libcudacxx/include/cuda/__ptx/instructions/st_bulk.h @@ -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_ST_BULK_H_ +#define _CUDA_PTX_ST_BULK_H_ + +#include + +#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 +#include +#include + +#include // __CUDA_MINIMUM_ARCH__ and friends + +_LIBCUDACXX_BEGIN_NAMESPACE_CUDA_PTX + +#include + +_LIBCUDACXX_END_NAMESPACE_CUDA_PTX + +#endif // _CUDA_PTX_ST_BULK_H_ diff --git a/libcudacxx/include/cuda/ptx b/libcudacxx/include/cuda/ptx index 7087dd97d2a..db9e70ab7e6 100644 --- a/libcudacxx/include/cuda/ptx +++ b/libcudacxx/include/cuda/ptx @@ -86,6 +86,7 @@ #include #include #include +#include #include #include diff --git a/libcudacxx/test/libcudacxx/cuda/ptx/ptx.st.bulk.compile.pass.cpp b/libcudacxx/test/libcudacxx/cuda/ptx/ptx.st.bulk.compile.pass.cpp new file mode 100644 index 00000000000..951e1a9f513 --- /dev/null +++ b/libcudacxx/test/libcudacxx/cuda/ptx/ptx.st.bulk.compile.pass.cpp @@ -0,0 +1,22 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// +// UNSUPPORTED: libcpp-has-no-threads + +// + +#include +#include + +#include "generated/st_bulk.h" + +int main(int, char**) +{ + return 0; +}