@@ -187,15 +187,15 @@ class GemmGatedMixin(GemmActMixin):
187187 def epi_to_underlying_arguments (
188188 self , args : GemmActMixin .EpilogueArguments , * , loc = None , ip = None
189189 ) -> GemmActMixin .EpilogueParams :
190- assert (
191- args . mPostAct . element_type . width == 16
192- ), "GemmGated only supports 16bit postact for now"
190+ assert args . mPostAct . element_type . width == 16 , (
191+ "GemmGated only supports 16bit postact for now"
192+ )
193193 assert self .d_layout is None or self .d_layout .is_n_major_c ()
194194 assert cutlass .utils .LayoutEnum .from_tensor (args .mPostAct ).is_n_major_c ()
195195 if self .arch == 90 :
196- assert (
197- self . cta_tile_shape_mnk [ 1 ] % 32 == 0
198- ), "GemmGatedSm90 requires tileN to be divisible by 32"
196+ assert self . cta_tile_shape_mnk [ 1 ] % 32 == 0 , (
197+ "GemmGatedSm90 requires tileN to be divisible by 32"
198+ )
199199 self .rounding_mode = args .rounding_mode
200200 self .postact_dtype = args .mPostAct .element_type
201201 self .postact_layout = cutlass .utils .LayoutEnum .from_tensor (args .mPostAct )
@@ -415,14 +415,14 @@ def gemm_act(
415415 device_capacity = get_device_capacity (A .device )
416416 assert device_capacity [0 ] in [9 , 10 , 11 ], "Only SM90, SM100, and SM110 are supported"
417417 if rounding_mode == RoundingMode .RS :
418- assert (
419- device_capacity [ 0 ] >= 10
420- ), "Stochastic rounding (RoundingMode.RS) requires SM100+ (Blackwell)"
418+ assert device_capacity [ 0 ] >= 10 , (
419+ "Stochastic rounding (RoundingMode.RS) requires SM100+ (Blackwell)"
420+ )
421421
422422 if is_dynamic_persistent and device_capacity [0 ] == 9 :
423- assert (
424- tile_count_semaphore is not None
425- ), "Dynamic persistent tile scheduler in SM90 requires a semaphore in GMEM"
423+ assert tile_count_semaphore is not None , (
424+ "Dynamic persistent tile scheduler in SM90 requires a semaphore in GMEM"
425+ )
426426
427427 sr_seed_mode = (
428428 2 if isinstance (sr_seed , Tensor ) else (1 if rounding_mode == RoundingMode .RS else 0 )
0 commit comments