@@ -744,15 +744,15 @@ def gen_swizzle_test(type_str, convert_type_str, as_type_str, size, num_batches,
744
744
return string
745
745
746
746
747
- def write_swizzle_source_file (swizzles , input_file , output_file , type_str ):
747
+ def write_swizzle_source_file (swizzles , input_file , output_file , type_str , batch_index ):
748
748
749
749
with open (input_file , 'r' ) as source_file :
750
750
source = source_file .read ()
751
751
752
752
source = replace_ifbyte_strings (source , type_str )
753
753
754
754
source = replace_string_in_source_string (source ,
755
- remove_namespaces_whitespaces (type_str ),
755
+ "{}_{}" . format ( remove_namespaces_whitespaces (type_str ), batch_index ),
756
756
'$TYPE_NAME' )
757
757
758
758
source = replace_string_in_source_string (source , swizzles [0 ],
@@ -813,4 +813,4 @@ def make_swizzles_tests(type_str, input_file, output_file, num_batches, batch_in
813
813
as_type_str , 8 , num_batches , batch_index )
814
814
swizzles [5 ] = gen_swizzle_test (type_str , convert_type_str ,
815
815
as_type_str , 16 , num_batches , batch_index )
816
- write_swizzle_source_file (swizzles , input_file , output_file , type_str )
816
+ write_swizzle_source_file (swizzles , input_file , output_file , type_str , batch_index )
0 commit comments