fix: guard configure_deep_gemm_num_sms when JIT disabled (#20868)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -122,7 +122,7 @@ def update_deep_gemm_config(gpu_id: int, server_args: ServerArgs):
|
||||
|
||||
@contextmanager
|
||||
def configure_deep_gemm_num_sms(num_sms):
|
||||
if num_sms is None:
|
||||
if num_sms is None or not ENABLE_JIT_DEEPGEMM:
|
||||
yield
|
||||
else:
|
||||
original_num_sms = deep_gemm.get_num_sms()
|
||||
|
||||
Reference in New Issue
Block a user