44
edits
Changes
K2
,→Assignment2
This is bitonic kernel. There are several variables.
'''Gap'''
gap expresses gap between 2 elements that will be compared. for example, if stage is 2 and round is 1, gap will be 2. because index 0 will be compared with index 2 and index 1 will be compared with index 3. if stage is 2 and round is 2, gap will be 1 and index 0 will be compared with index 1 so on.