Skip to content

Commit 12d48c6

Browse files
authored
chore: remove cpp benchmarks, tests, cmake path, as they are deprecated (#1345)
After discovering that these tests and benchmarks do not build, I attempted to repair them [here](#1336). I was informed that this part of the code is deprecated, and that CMake is not used to perform builds anymore. To avoid anyone else attempting to use this code and spending time trying to repair it, I suggest that it be removed.
1 parent bf3445f commit 12d48c6

33 files changed

+1
-7576
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ flashinfer/_build_meta.py
1212
flashinfer/data/
1313
flashinfer/jit/aot_config.py
1414
aot-ops/
15-
src/generated/
1615
csrc/aot_default_additional_params.h
1716

1817
# DS_Store files

.gitmodules

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
[submodule "3rdparty/nvbench"]
2-
path = 3rdparty/nvbench
3-
url = https://github.com/NVIDIA/nvbench.git
4-
[submodule "3rdparty/googletest"]
5-
path = 3rdparty/googletest
6-
url = https://github.com/google/googletest.git
71
[submodule "3rdparty/cutlass"]
82
path = 3rdparty/cutlass
93
url = https://github.com/NVIDIA/cutlass.git

.pre-commit-config.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,4 @@ repos:
5353
- id: clang-format
5454
types_or: [c++, c, cuda]
5555
exclude: |
56-
(?x)^(3rdparty/.* src/generated/.* flashinfer/jit/aot_config.py)$
57-
58-
- repo: https://github.com/cheshirekow/cmake-format-precommit
59-
rev: v0.6.13
60-
hooks:
61-
- id: cmake-format
62-
additional_dependencies: [pyyaml>=5.1]
56+
(?x)^(3rdparty/.* flashinfer/jit/aot_config.py)$

3rdparty/googletest

Lines changed: 0 additions & 1 deletion
This file was deleted.

3rdparty/nvbench

Lines changed: 0 additions & 1 deletion
This file was deleted.

CMakeLists.txt

Lines changed: 0 additions & 452 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,6 @@ Check out [documentation](https://docs.flashinfer.ai/) for usage of batch decode
134134

135135
Starting from FlashInfer v0.2, users can customize their own attention variants with additional parameters. For more details, refer to our [JIT examples](https://github.com/flashinfer-ai/flashinfer/blob/main/tests/test_jit_example.py).
136136

137-
## Run Benchmarks
138-
139-
We profile FlashInfer kernel performance with [nvbench](https://github.com/NVIDIA/nvbench) and you can compile and run the benchmarks with the following commands:
140-
141-
```bash
142-
mkdir build
143-
cp cmake/config.cmake build # you can modify the config.cmake to enable/disable benchmarks and change CUDA architectures
144-
cd build
145-
cmake ..
146-
make -j12
147-
```
148-
149-
You can run `./bench_{single/batch}_{prefill/decode}` to benchmark the performance (e.g. `./bench_single_prefill` for single-request prefill attention). `./bench_{single/batch}_{prefill/decode} --help` will show you the available options.
150-
151137
## C++ API and TVM Bindings
152138

153139
FlashInfer also provides C++ API and TVM bindings, please refer to [documentation](https://docs.flashinfer.ai/) for more details.

cmake/config.cmake

Lines changed: 0 additions & 40 deletions
This file was deleted.

cmake/modules/FindThrust.cmake

Lines changed: 0 additions & 69 deletions
This file was deleted.

cmake/utils/Utils.cmake

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)