Skip to content

Commit 3ad89fc

Browse files
committed
Removes unused CUDA generator includes
Cleans up unnecessary ATen CUDA generator imports that are no longer referenced in the codebase. Reduces compilation dependencies and improves build performance.
1 parent 8e3eff6 commit 3ad89fc

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

csrc/flash_api.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#include <torch/nn/functional.h>
88
#include <c10/cuda/CUDAGuard.h>
99
#include <c10/cuda/CUDAStream.h>
10-
#include <ATen/cuda/CUDAGeneratorImpl.h> // For at::Generator and at::PhiloxCudaState
11-
#include <ATen/cuda/detail/UnpackRaw.cuh> // For at::cuda::philox::unpack
1210

1311
#include <cutlass/numeric_types.h>
1412

csrc/src/flash.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#include <cuda.h>
1010
#include <vector>
1111

12-
#include <ATen/cuda/CUDAGeneratorImpl.h> // For at::Generator and at::PhiloxCudaState
13-
1412
namespace FLASH_NAMESPACE {
1513
constexpr int TOTAL_DIM = 0;
1614
constexpr int H_DIM = 1;

0 commit comments

Comments
 (0)