Skip to content

Commit

Permalink
Revert "[OpenMP][Fix] Fix test array initialization. (#74799)" (#74800)
Browse files Browse the repository at this point in the history
This reverts commit d413681.
  • Loading branch information
doru1004 committed Dec 8, 2023
1 parent d413681 commit 1216a31
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions openmp/libomptarget/test/offloading/back2back_distribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ void reset_input(double *a, double *a_h, double *b, double *c) {
}

int main(int argc, char *argv[]) {
double *a = (double *)calloc(MAX_N * sizeof(double));
double *a_h = (double *)calloc(MAX_N * sizeof(double));
double *d = (double *)calloc(MAX_N * sizeof(double));
double *d_h = (double *)calloc(MAX_N * sizeof(double));
double *b = (double *)calloc(MAX_N * sizeof(double));
double *c = (double *)calloc(MAX_N * sizeof(double));
double * a = (double *) malloc(MAX_N * sizeof(double));
double * a_h = (double *) malloc(MAX_N * sizeof(double));
double * d = (double *) malloc(MAX_N * sizeof(double));
double * d_h = (double *) malloc(MAX_N * sizeof(double));
double * b = (double *) malloc(MAX_N * sizeof(double));
double * c = (double *) malloc(MAX_N * sizeof(double));

#pragma omp target enter data map(to:a[:MAX_N],b[:MAX_N],c[:MAX_N],d[:MAX_N])

Expand Down

0 comments on commit 1216a31

Please sign in to comment.