File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1010# Import interface modules
1111from . import activation
1212from . import attn_interface
13- from . import cutile
13+
14+ # Make cutile optional - only import if backend is fully available
15+ if is_backend_available ("cutile" ):
16+ try :
17+ from . import cutile
18+ except (ImportError , RuntimeError ):
19+ import warnings
20+
21+ warnings .warn ("Cutile backend import failed, cutile operations will not be available" )
22+ cutile = None # type: ignore
23+ else :
24+ cutile = None # type: ignore
25+
1426from . import moe_interface
1527
1628# Re-export key interfaces
2638__all__ = [
2739 # Export all operations from ops module
2840 # Backend implementations
29- "cutile" ,
3041 # Interface modules
3142 "attn_interface" ,
3243 "moe_interface" ,
3849 "mla_decoding_interface" ,
3950 "fused_moe_kernel_interface" ,
4051]
52+
53+ # Add cutile to exports only if successfully imported
54+ if cutile is not None :
55+ __all__ .append ("cutile" )
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ def grid_fn(cfg):
271271 "occupancy" : cfg .occupancy ,
272272 },
273273 search_space = _bmm_autotune_configs ,
274+ compiler_time_limit_sec = 30 ,
274275 )
275276
276277 return output
You can’t perform that action at this time.
0 commit comments