@@ -3,7 +3,7 @@ from gpu.host import DeviceContext
33from sys.info import simdwidthof
44
55from ishlib.gpu.kernels.semi_global import gpu_align_coarse
6- from ishlib.matcher import Matcher, MatchResult
6+ from ishlib.matcher import Matcher, MatchResult, simd_width_selector
77from ishlib.matcher.alignment import create_reversed
88from ishlib.matcher.alignment.scoring_matrix import ScoringMatrix, MatrixKind
99from ishlib.matcher.alignment.semi_global_aln.striped import (
@@ -18,12 +18,9 @@ from ishlib.vendor.log import Logger
1818
1919@value
2020struct StripedSemiGlobalMatcher (GpuMatcher ):
21- alias SIMD_U8_WIDTH = simdwidthof[
22- UInt8
23- ]() # // 4 # TODO : needs tuning on wider machines
24- alias SIMD_U16_WIDTH = simdwidthof[
25- UInt16
26- ]() # // 4 # TODO : needs tuning on wider machines
21+ alias SIMD_U8_WIDTH = simd_width_selector[DType.uint8]()
22+ alias SIMD_U16_WIDTH = simd_width_selector[DType.uint16]()
23+
2724 var pattern : List[UInt8]
2825 var rev_pattern : List[UInt8]
2926 var max_score : Int
@@ -46,6 +43,7 @@ struct StripedSemiGlobalMatcher(GpuMatcher):
4643 gap_open : UInt = 3 ,
4744 gap_extend : UInt = 1 ,
4845 ):
46+ Logger.info(" SIMD_U8_WIDTH=" , Self.SIMD_U8_WIDTH )
4947 Logger.info(" Performing matching with StripedSemiGlobalMatcher." )
5048 self .gap_open = gap_open
5149 self .gap_extend = gap_extend
0 commit comments