• Learn
    Get Started Tutorials Learn the Basics PyTorch Recipes Intro to PyTorch - YouTube Series Webinars
  • Community
    Landscape Join the Ecosystem Community Hub Forums Developer Resources Contributor Awards Community Events PyTorch Ambassadors
  • Projects
    PyTorch vLLM DeepSpeed Host Your Project
  • Docs
    PyTorch Domains
  • Blogs & News
    Blog Announcements Case Studies Events Newsletter
  • About
    PyTorch Foundation Members Governing Board Technical Advisory Council Cloud Credit Program Staff Contact
  • JOIN
  • Learn
    • Get Started
    • Tutorials
    • Learn the Basics
    • PyTorch Recipes
    • Introduction to PyTorch - YouTube Series
    • Webinars
  • Community
    • Landscape
    • Join the Ecosystem
    • Community Hub
    • Forums
    • Developer Resources
    • Contributor Awards
    • Community Events
    • PyTorch Ambassadors
  • Projects
    • PyTorch
    • vLLM
    • DeepSpeed
    • Host Your Project
  • Docs
    • PyTorch
    • Domains
  • Blog & News
    • Blog
    • Announcements
    • Case Studies
    • Events
    • Newsletter
  • About
    • PyTorch Foundation
    • Members
    • Governing Board
    • Technical Advisory Council
    • Cloud Credit Program
    • Staff
    • Contact
Skip to main content
Ctrl+K
main
  • Installing C++ Distributions of PyTorch
  • The C++ Frontend
  • Library API
  • FAQ
  • Inference Mode
    • MaybeOwned
    • Tensor Basics
    • Tensor Creation API
    • Tensor CUDA Stream API
    • Tensor Indexing API
    • Library Versioning
Ctrl+K
  • X
  • GitHub
  • PyTorch Forum
  • PyPi
  • Installing C++ Distributions of PyTorch
  • The C++ Frontend
  • Library API
  • FAQ
  • Inference Mode
  • MaybeOwned
  • Tensor Basics
  • Tensor Creation API
  • Tensor CUDA Stream API
  • Tensor Indexing API
  • Library Versioning
Ctrl+K
  • X
  • GitHub
  • PyTorch Forum
  • PyPi

Section Navigation

  • Program Listing for File CUDAStream.h
  • File CUDAStream.h
Rate this Page
★ ★ ★ ★ ★

File CUDAStream.h#

↰ Parent directory (c10/cuda)

Page Contents

  • Definition (c10/cuda/CUDAStream.h)

  • Includes

  • Included By

  • Namespaces

  • Classes

  • Functions

  • Variables

Definition (c10/cuda/CUDAStream.h)#

  • Program Listing for File CUDAStream.h

Includes#

  • c10/core/DeviceGuard.h

  • c10/core/Stream.h

  • c10/cuda/CUDAFunctions.h

  • c10/util/Exception.h (File Exception.h)

  • cuda_runtime_api.h

Included By#

  • File CUDAContext.h

Namespaces#

  • Namespace c10

  • Namespace c10::cuda

  • Namespace std

Classes#

  • Class CUDAStream

Functions#

  • Function c10::cuda::getCurrentCUDAStream

  • Function c10::cuda::getDefaultCUDAStream

  • Function c10::cuda::getStreamFromExternal

  • Function c10::cuda::getStreamFromPool(const int, DeviceIndex)

  • Function c10::cuda::getStreamFromPool(const bool, DeviceIndex)

  • Function c10::cuda::operator<<

  • Function c10::cuda::setCurrentCUDAStream

Variables#

  • Variable c10::cuda::max_compile_time_stream_priorities

Rate this Page
★ ★ ★ ★ ★

© Copyright PyTorch Contributors.

Built with the PyData Sphinx Theme 0.15.4.

On this page
  • Definition (c10/cuda/CUDAStream.h)
  • Includes
  • Included By
  • Namespaces
  • Classes
  • Functions
  • Variables
Show Source
PyTorch Libraries
  • torchaudio
  • torchao
  • ExecuTorch
  • torchrec
  • torchserve
  • torchdata
  • torchvision
  • PyTorch on XLA Devices

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources

Stay in touch for updates, event info, and the latest news

By submitting this form, I consent to receive marketing emails from the LF and its projects regarding their events, training, research, developments, and related announcements. I understand that I can unsubscribe at any time using the links in the footers of the emails I receive. Privacy Policy.

© PyTorch. Copyright © The Linux Foundation®. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For more information, including terms of use, privacy policy, and trademark usage, please see our Policies page. Trademark Usage. Privacy Policy.

To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.

To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.

© Copyright PyTorch Contributors.

Created using Sphinx 5.3.0.

Built with the PyData Sphinx Theme 0.15.4.