cuDenseOffset: check across oversample win size

LT1AB
Zhang Yunjun 2020-06-02 11:15:57 -07:00 committed by piyushrpt
parent 90d578fa5d
commit c642ab2e9a
1 changed files with 6 additions and 0 deletions

View File

@ -107,6 +107,12 @@ def cmdLineParse(iargs = None):
parser = createParser() parser = createParser()
inps = parser.parse_args(args=iargs) inps = parser.parse_args(args=iargs)
# check oversampled window size
if (inps.winwidth + 2 * inps.srcwidth) * inps.raw_oversample > 1024:
msg = 'input oversampled window size in the across/range direction '
msg += 'exceeds the current implementaion limit of 1024!'
raise ValueError(msg)
return inps return inps