Skip to content

Commit

Permalink
Move autogenerated files to 'autogen' folder
Browse files Browse the repository at this point in the history
ghstack-source-id: e8fd3486722f3e201a67e3db5771eef79c4e4ae2
Pull Request resolved: https://github.com/fairinternal/xformers/pull/456

__original_commit__ = fairinternal/xformers@dfbacbc69253f36c3cf3a13df9b2eb66348447c3
  • Loading branch information
danthe3rd authored and xFormers Bot committed Feb 2, 2023
1 parent 82d5881 commit 48a77cc
Show file tree
Hide file tree
Showing 53 changed files with 110 additions and 156 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linters_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
clang-format --version
# apply to our files - excluding autogenerated files
./.circleci/run-clang-format.py -e "*fmha/kernels" -r xformers/csrc
./.circleci/run-clang-format.py -e "*fmha/autogen" -r xformers/csrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#include <torch/library.h>
#include "ATen/ops/empty_like.h"

#include "autogen/cutlassB.h"
#include "gemm_kernel_utils.h"
#include "kernel_backward.h"
#include "kernels/cutlassB.h"
#include "pytorch_utils.h"

namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include <torch/library.h>
#include <ATen/cuda/CUDAGraphsUtils.cuh>

#include "autogen/cutlassF.h"
#include "kernel_forward.h"
#include "kernels/cutlassF.h"
#include "pytorch_utils.h"

namespace {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#pragma once
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../kernel_backward.h"
// ======== f16 / sm50 ========
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, true, false, false, 64, 64, 32>::kNumThreads,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_forward.h"

#pragma once
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_FORWARD
#include "../kernel_forward.h"
// ======== bf16 / sm80 ========
__global__ void __launch_bounds__(
AttentionKernel<cutlass::bfloat16_t, cutlass::arch::Sm80, true, 64, 64, true, true, true>::kNumThreads,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, false, true, 128, 128, 128>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, false, true, 128, 128, 128>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, true, true, 128, 128, 128>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, true, true, 128, 128, 128>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, false, true, 64, 64, 32>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, false, true, 64, 64, 32>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, true, true, 64, 64, 32>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, true, true, 64, 64, 32>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, false, true, 64, 64, 64>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, false, true, 64, 64, 64>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, true, true, 64, 64, 64>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, true, true, 64, 64, 64>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, false, false, 128, 64, 65536>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, false, false, 128, 64, 65536>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, true, false, 128, 64, 65536>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, true, false, 128, 64, 65536>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, false, true, 128, 64, 96>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::bfloat16_t, true, false, true, 128, 64, 96>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, true, false, false, 128, 64, 128>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, true, false, false, 128, 64, 128>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, true, true, false, 128, 64, 128>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, true, true, false, 128, 64, 128>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, true, false, false, 64, 64, 32>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, true, false, false, 64, 64, 32>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, true, true, false, 64, 64, 32>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, true, true, false, 64, 64, 32>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, true, false, false, 64, 64, 64>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, true, false, false, 64, 64, 64>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, true, true, false, 64, 64, 64>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, true, true, false, 64, 64, 64>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, true, false, false, 128, 64, 65536>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, true, false, false, 128, 64, 65536>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, true, true, false, 128, 64, 65536>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, true, true, false, 128, 64, 65536>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::half_t, true, false, true, 128, 64, 96>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, cutlass::half_t, true, false, true, 128, 64, 96>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, false, false, false, 128, 64, 128>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, false, false, false, 128, 64, 128>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, false, true, false, 128, 64, 128>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, false, true, false, 128, 64, 128>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, false, false, false, 64, 64, 32>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, false, false, false, 64, 64, 32>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, false, true, false, 64, 64, 32>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, false, true, false, 64, 64, 32>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, false, false, false, 64, 64, 64>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, false, false, false, 64, 64, 64>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, false, true, false, 64, 64, 64>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, cutlass::half_t, false, true, false, 64, 64, 64>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, false, false, false, 128, 64, 65536>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, false, false, false, 128, 64, 65536>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, false, true, false, 128, 64, 65536>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm70, cutlass::half_t, false, true, false, 128, 64, 65536>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, float, true, false, false, 128, 64, 128>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, float, true, false, false, 128, 64, 128>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, float, true, true, false, 128, 64, 128>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, float, true, true, false, 128, 64, 128>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, float, true, false, false, 64, 64, 32>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, float, true, false, false, 64, 64, 32>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, float, true, true, false, 64, 64, 32>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, float, true, true, false, 64, 64, 32>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, float, true, false, false, 64, 64, 64>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, float, true, false, false, 64, 64, 64>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, float, true, true, false, 64, 64, 64>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, float, true, true, false, 64, 64, 64>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, float, true, false, false, 128, 64, 65536>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, float, true, false, false, 128, 64, 65536>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm80, float, true, true, false, 128, 64, 65536>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm80, float, true, true, false, 128, 64, 65536>::kMinBlocksPerSm)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
// This file is auto-generated. See "generate_kernels.py"
#include "../kernel_backward.h"

#ifndef XFORMERS_MEM_EFF_ATTENTION_DISABLE_BACKWARD
#include "../../kernel_backward.h"
__global__ void __launch_bounds__(
AttentionBackwardKernel<cutlass::arch::Sm50, float, false, false, false, 64, 64, 128>::kNumThreads,
AttentionBackwardKernel<cutlass::arch::Sm50, float, false, false, false, 64, 64, 128>::kMinBlocksPerSm)
Expand Down
Loading

0 comments on commit 48a77cc

Please sign in to comment.