Closed ysshao closed 9 years ago
I'm tempted to leave this in. The scoring matrix is an intermediate data structure, not really an input. You wouldn't expect a user to supply it or initialize it. aes/aes
requires similar initialization to its internal data structures. fft/strided
requires its twiddle factors supplied, but fft/transpose
computes and caches its own. Maybe we should standardize those.
I see. That makes sense. Is the reason that we put these structures in the arguments because we don't want to have mallocs in the kernel codes?
And I agree, we should standardize this. I'll close this pull request then.
Also updated the input.data file.
The first two loops in nw are basically constant initializations. Since we already do all the initialization in the generate script, there is no reason to initialize them again in the benchmark file.