From bba8cb3de6b3e2f1ec14dca757401fa6e1664df5 Mon Sep 17 00:00:00 2001 From: "Nichols A. Romero" Date: Fri, 20 Dec 2024 00:03:04 +0000 Subject: [PATCH 1/4] Update C++ Extension tutorial with note about AMD GPU. --- advanced_source/cpp_extension.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/advanced_source/cpp_extension.rst b/advanced_source/cpp_extension.rst index 96cbb9f5cc7..e6c8820c412 100644 --- a/advanced_source/cpp_extension.rst +++ b/advanced_source/cpp_extension.rst @@ -1207,3 +1207,9 @@ examples displayed in this note `here `_. If you have questions, please use `the forums `_. Also be sure to check our `FAQ `_ in case you run into any issues. + +PyTorch C++ Extension on AMD GPU +-------------------------------- + +A blog on writing extensions for the AMD GPU can be found `here +`_. From 2cc4cdc1d0b52ccff575110438fe92d9893c745c Mon Sep 17 00:00:00 2001 From: "Nichols A. Romero" Date: Mon, 13 Jan 2025 21:27:44 +0000 Subject: [PATCH 2/4] Put in a NOTE call out box and change to AMD ROCm. --- advanced_source/cpp_extension.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/advanced_source/cpp_extension.rst b/advanced_source/cpp_extension.rst index e6c8820c412..cd74cbd8617 100644 --- a/advanced_source/cpp_extension.rst +++ b/advanced_source/cpp_extension.rst @@ -7,6 +7,11 @@ Custom C++ and CUDA Extensions This tutorial is deprecated as of PyTorch 2.4. Please see :ref:`custom-ops-landing-page` for the newest up-to-date guides on extending PyTorch with Custom C++/CUDA Extensions. +.. note:: + + A blog on writing extensions for AMD ROCm can be found `here + `_. + PyTorch provides a plethora of operations related to neural networks, arbitrary tensor algebra, data wrangling and other purposes. However, you may still find yourself in need of a more customized operation. For example, you might want to @@ -1207,9 +1212,3 @@ examples displayed in this note `here `_. If you have questions, please use `the forums `_. Also be sure to check our `FAQ `_ in case you run into any issues. - -PyTorch C++ Extension on AMD GPU --------------------------------- - -A blog on writing extensions for the AMD GPU can be found `here -`_. From df39b0aeb565227d9001aa8e45c6bcb0396c8c7c Mon Sep 17 00:00:00 2001 From: "Nichols A. Romero" Date: Mon, 10 Mar 2025 20:54:42 +0000 Subject: [PATCH 3/4] Move calll out box to conclusion section. --- advanced_source/cpp_extension.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/advanced_source/cpp_extension.rst b/advanced_source/cpp_extension.rst index cd74cbd8617..32d1101189f 100644 --- a/advanced_source/cpp_extension.rst +++ b/advanced_source/cpp_extension.rst @@ -7,11 +7,6 @@ Custom C++ and CUDA Extensions This tutorial is deprecated as of PyTorch 2.4. Please see :ref:`custom-ops-landing-page` for the newest up-to-date guides on extending PyTorch with Custom C++/CUDA Extensions. -.. note:: - - A blog on writing extensions for AMD ROCm can be found `here - `_. - PyTorch provides a plethora of operations related to neural networks, arbitrary tensor algebra, data wrangling and other purposes. However, you may still find yourself in need of a more customized operation. For example, you might want to @@ -1212,3 +1207,8 @@ examples displayed in this note `here `_. If you have questions, please use `the forums `_. Also be sure to check our `FAQ `_ in case you run into any issues. + +.. note:: + + A blog on writing extensions for AMD ROCm can be found `here + `_. From eef2e0958935b793a4004a42992d27223f26cd66 Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Wed, 19 Mar 2025 09:32:23 -0700 Subject: [PATCH 4/4] Update advanced_source/cpp_extension.rst --- advanced_source/cpp_extension.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/advanced_source/cpp_extension.rst b/advanced_source/cpp_extension.rst index 32d1101189f..9784cf910ba 100644 --- a/advanced_source/cpp_extension.rst +++ b/advanced_source/cpp_extension.rst @@ -1207,8 +1207,5 @@ examples displayed in this note `here `_. If you have questions, please use `the forums `_. Also be sure to check our `FAQ `_ in case you run into any issues. - -.. note:: - - A blog on writing extensions for AMD ROCm can be found `here - `_. +A blog on writing extensions for AMD ROCm can be found `here +`_.