• Learn
    Get Started

    Run PyTorch locally or get started quickly with one of the supported cloud platforms

    Tutorials

    Whats new in PyTorch tutorials

    Learn the Basics

    Familiarize yourself with PyTorch concepts and modules

    PyTorch Recipes

    Bite-size, ready-to-deploy PyTorch code examples

    Intro to PyTorch - YouTube Series

    Master PyTorch basics with our engaging YouTube tutorial series

  • Ecosystem
    Tools

    Learn about the tools and frameworks in the PyTorch Ecosystem

    Community

    Join the PyTorch developer community to contribute, learn, and get your questions answered

    Forums

    A place to discuss PyTorch code, issues, install, research

    Developer Resources

    Find resources and get questions answered

    Contributor Awards - 2024

    Award winners announced at this year's PyTorch Conference

  • Edge
    About PyTorch Edge

    Build innovative and privacy-aware AI experiences for edge devices

    ExecuTorch

    End-to-end solution for enabling on-device inference capabilities across mobile and edge devices

    ExecuTorch Docs
  • Docs
    PyTorch

    Explore the documentation for comprehensive guidance on how to use PyTorch

    PyTorch Domains

    Read the PyTorch Domains documentation to learn more about domain-specific libraries

  • Blogs & News
    PyTorch Blog

    Catch up on the latest technical news and happenings

    Community Blog

    Stories from the PyTorch ecosystem

    Videos

    Learn about the latest PyTorch tutorials, new, and more

    Community Stories

    Learn how our community solves real, everyday machine learning problems with PyTorch

    Events

    Find events, webinars, and podcasts

    Newsletter

    Stay up-to-date with the latest updates

  • About
    PyTorch Foundation

    Learn more about the PyTorch Foundation

    Governing Board Cloud Credit Program Technical Advisory Council Staff Contact Us
  • Become a Member
  • Learn
    • Get Started
    • Tutorials
    • Learn the Basics
    • PyTorch Recipes
    • Introduction to PyTorch - YouTube Series
  • Ecosystem
    • Tools
    • Community
    • Forums
    • Developer Resources
    • Contributor Awards - 2024
  • Edge
    • About PyTorch Edge
    • ExecuTorch
    • ExecuTorch Documentation
  • Docs
    • PyTorch
    • PyTorch Domains
  • Blog & News
    • PyTorch Blog
    • Community Blog
    • Videos
    • Community Stories
    • Events
    • Newsletter
  • About
    • PyTorch Foundation
    • Governing Board
    • Cloud Credit Program
    • Technical Advisory Council
    • Staff
    • Contact Us
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

  • Library API
  • Namespace c10::cuda
Rate this Page
★ ★ ★ ★ ★

Namespace c10::cuda#

Page Contents

  • Classes

  • Functions

  • Variables

Classes#

  • Struct CUDAGuard

  • Struct CUDAMultiStreamGuard

  • Struct CUDAStreamGuard

  • Struct OptionalCUDAGuard

  • Struct OptionalCUDAStreamGuard

  • Class CUDAStream

Functions#

  • Function c10::cuda::getCurrentCUDAStream

  • Function c10::cuda::getDefaultCUDAStream

  • Function c10::cuda::getStreamFromExternal

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

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

  • Function c10::cuda::operator<<

  • Function c10::cuda::setCurrentCUDAStream

Variables#

  • Variable c10::cuda::max_compile_time_stream_priorities

Rate this Page
★ ★ ★ ★ ★

previous

Namespace c10

next

Namespace c10::detail

© Copyright PyTorch Contributors.

Built with the PyData Sphinx Theme 0.15.4.

previous

Namespace c10

next

Namespace c10::detail

On this page
  • 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
  • PyTorch
  • Get Started
  • Features
  • Ecosystem
  • Blog
  • Contributing
  • Resources
  • Tutorials
  • Docs
  • Discuss
  • Github Issues
  • Brand Guidelines
  • Stay up to date
  • Facebook
  • Twitter
  • YouTube
  • LinkedIn
  • PyTorch Podcasts
  • Spotify
  • Apple
  • Google
  • Amazon
  • Terms
  • |
  • Privacy

© Copyright The Linux Foundation. The PyTorch Foundation is a project of The Linux Foundation. For web site terms of use, trademark policy and other policies applicable to The PyTorch Foundation please see www.linuxfoundation.org/policies/. The PyTorch Foundation supports the PyTorch open source project, which has been established as PyTorch Project a Series of LF Projects, LLC. For policies applicable to the PyTorch Project a Series of LF Projects, LLC, please see www.lfprojects.org/policies/.

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.