Commit 08744240 authored by Mitch Burnett's avatar Mitch Burnett
Browse files

data fill ordering comment

parent 51c88337
No related merge requests found
Showing with 8 additions and 1 deletion
+8 -1
......@@ -41,6 +41,7 @@ void rtbfFillDataBlock(complex16_t *array_input_data, RTBFContext *context) {
int Ni = context->input_per_fid;
blockcounter++;
// fill network ordered block of array data
for (int m=0; m<Nm; m++) { // mcnt
for (int f=0; f<Nf; f++) { // fid
for (int t=0; t<Nt; t++) { // time
......@@ -95,7 +96,7 @@ void rtbfRAWFillDataBlock(complex16_t *array_input_data, RTBFContext *context, R
}
}
// fill data array
// fill network ordered block of array data
for (int m=0; m<Nm; m++) { // mcnt
for (int f=0; f<Nf; f++) { // fid
for (int t=0; t<Nt; t++) { // time
......
......@@ -79,6 +79,7 @@ int main(int argc, char* argv[]) {
complex16_t *d_cx_ptr = (complex16_t*) malloc(rtbf_info.array_len*sizeof(complex16_t)); // input data
float *b_float_ptr = (float*) malloc(rtbf_info.beam_power_len*sizeof(float)); // output data
// fill a network ordered block of array data
for (int m=0; m<Nm; m++) { // mcnt
for (int f=0; f<Nf; f++) { // fid
for (int t=0; t<Nt; t++) { // time
......
......@@ -139,6 +139,7 @@ int main(int argc, char* argv[]) {
printf("input ptr: %p (size: %u), output ptr: %p (size: %u)\n",
d_cx_ptr, rtbf_info.array_len*sizeof(complex16_t), b_cx_ptr, rtbf_info.beamformed_len*sizeof(cx_output_t));
// fill a network ordered block of array data
for (int m=0; m<Nm; m++) { // mcnt
for (int f=0; f<Nf; f++) { // fid
for (int t=0; t<Nt; t++) { // time
......
......@@ -89,6 +89,7 @@ int main(int argc, char* argv[]) {
complex16_t *d_cx_ptr = (complex16_t*) malloc(rtbf_info.array_len*sizeof(complex16_t)); // input data
stokesvec_t *b_sv_ptr = (stokesvec_t*) malloc(rtbf_info.sti_stokes_len*sizeof(stokesvec_t)); // output data
// fill a network ordered block of array data
for (int m=0; m<Nm; m++) { // mcnt
for (int f=0; f<Nf; f++) { // fid
for (int t=0; t<Nt; t++) { // time
......
......@@ -119,6 +119,7 @@ int main(int argc, char* argv[]) {
printf("input ptr: %p (size: %u), output ptr: %p (size: %u)\n",
d_cx_ptr, rtbf_info.array_len*sizeof(complex16_t), b_cx_ptr, rtbf_info.beamformed_len*sizeof(cx_output_t));
// fill a network ordered block of array data
for (int m=0; m<Nm; m++) { // mcnt
for (int f=0; f<Nf; f++) { // fid
for (int t=0; t<Nt; t++) { // time
......
......@@ -90,6 +90,7 @@ int main(int argc, char* argv[]) {
complex16_t *d_cx_ptr = (complex16_t*) malloc(Bk*rtbf_info.array_len*sizeof(complex16_t)); // input data
stokesvec_t *b_sv_ptr = (stokesvec_t*) malloc(Bk*rtbf_info.sti_stokes_len*sizeof(stokesvec_t)); // output data
// fill a network ordered block of array data
for (int m=0; m<Nm; m++) { // mcnt
for (int f=0; f<Nf; f++) { // fid
for (int t=0; t<Nt; t++) { // time
......@@ -177,6 +178,7 @@ int main(int argc, char* argv[]) {
update_d_cx_ptr = d_cx_ptr + context.input_offset;
printf("setting input starting at addr %p\n", update_d_cx_ptr);
// fill a network ordered block of array data
for (int m=0; m<Nm; m++) { // mcnt
for (int f=0; f<Nf; f++) { // fid
for (int t=0; t<Nt; t++) { // time
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment