/usr/local/lib64/python3.6/site-packages/torch/include/ATen/cuda
NameSizeModeActions
detail/-0755rm
ATenCUDAGeneral.h1900644editdlrm
cub.cuh115940644editdlrm
CUDAApplyUtils.cuh212900644editdlrm
CUDABlas.h110010644editdlrm
CUDAConfig.h5830644editdlrm
CUDAContext.h22490644editdlrm
CUDADevice.h3520644editdlrm
CUDAEvent.h57380644editdlrm
CUDAGraph.h24370644editdlrm
CUDAGraphsUtils.cuh20130644editdlrm
CUDASolver.h228780644editdlrm
CUDATensorMethods.cuh2700644editdlrm
CUDAUtils.h4280644editdlrm
DeviceUtils.cuh29910644editdlrm
Exceptions.h73870644editdlrm
NumericLimits.cuh52140644editdlrm
PinnedMemoryAllocator.h1670644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/ATen/cuda/CUDAGraphsUtils.cuh (2013B)
#pragma once #include #include #include #include #include #include #include #include // c10/cuda/CUDAGraphsC10Utils.h has utils used by both c10 and aten. // This file adds utils used by aten only. namespace at { namespace cuda { using CaptureId_t = c10::cuda::CaptureId_t; using CaptureStatus = c10::cuda::CaptureStatus; // Use this version where you don't want to create a CUDA context if none exists. inline CaptureStatus currentStreamCaptureStatus() { #if defined(CUDA_VERSION) && CUDA_VERSION >= 11000 // don't create a context if we don't have to if (at::cuda::detail::hasPrimaryContext(c10::cuda::current_device())) { return c10::cuda::currentStreamCaptureStatusMayInitCtx(); } else { return CaptureStatus::None; } #else return CaptureStatus::None; #endif } inline void assertNotCapturing(std::string attempt) { auto status = currentStreamCaptureStatus(); TORCH_CHECK(status == CaptureStatus::None, attempt, " during CUDA graph capture. If you need this call to be captured, " "please file an issue. " "Current cudaStreamCaptureStatus: ", status); } inline void errorIfCapturingCudnnBenchmark(std::string version_specific) { auto status = currentStreamCaptureStatus(); TORCH_CHECK(status == CaptureStatus::None, "Current cudaStreamCaptureStatus: ", status, "\nCapturing ", version_specific, "is prohibited. Possible causes of this error:\n" "1. No warmup iterations occurred before capture.\n" "2. The convolutions you're trying to capture use dynamic shapes, " "in which case capturing them is generally prohibited."); } } // namespace cuda } // namespace at