File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -525,9 +525,6 @@ def gen_all_modules(
525
525
# Add cuDNN FMHA module
526
526
jit_specs .append (gen_cudnn_fmha_module ())
527
527
528
- # NOTE(Zihao): just for debugging, remove later
529
- jit_specs = [gen_spdlog_module ()]
530
-
531
528
# dedup
532
529
names = set ()
533
530
ret : List [JitSpec ] = []
Original file line number Diff line number Diff line change @@ -263,6 +263,10 @@ def _get_num_workers() -> Optional[int]:
263
263
264
264
265
265
def run_ninja (workdir : Path , ninja_file : Path , verbose : bool ) -> None :
266
+ if os .environ .get ("FLASHINFER_DISABLE_JIT" ):
267
+ raise RuntimeError (
268
+ "JIT compilation is disabled via FLASHINFER_DISABLE_JIT environment variable"
269
+ )
266
270
workdir .mkdir (parents = True , exist_ok = True )
267
271
command = [
268
272
"ninja" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ pip install ${DIST_CUBIN_DIR}/*.whl
23
23
echo " Installing flashinfer-jit-cache from ${DIST_JIT_CACHE_DIR} ..."
24
24
pip install ${DIST_JIT_CACHE_DIR} /* .whl
25
25
26
+ # Disable JIT to verify that jit-cache package contains all necessary
27
+ # precompiled modules for the test suite to pass without compilation
28
+ echo " Disabling JIT compilation to test with precompiled cache only..."
29
+ export FLASHINFER_DISABLE_JIT=1
30
+
26
31
echo " Installing flashinfer-python from ${DIST_PYTHON_DIR} ..."
27
32
pip install ${DIST_PYTHON_DIR} /* .tar.gz
28
33
You can’t perform that action at this time.
0 commit comments