Research Article

Multidimensional Costas Arrays and Their Enumeration Using GPUs and FPGAs

Algorithm 2

The array of permutations used between the Host and GPU is an array of size of type CostasData; counter stores the number of Costas array of size found in each thread of the GPU, subcostas stores one of the subpermutations of size computed in the Host, and costas stores a maximum number of the remaining ( ) elements of the Costas arrays of size N found in each thread of the GPU.
typedef struct{
 char counter;
 char subcostas[ ];
 char costas[MAX_COSTAS_PT][ ];
} CostasData;