Skip to content

Revert "[OpenMP][Fix] Fix test array initialization. (#74799)" #74800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

doru1004
Copy link
Contributor

@doru1004 doru1004 commented Dec 8, 2023

This reverts commit d413681.

@llvmbot llvmbot added the openmp:libomptarget OpenMP offload runtime label Dec 8, 2023
@doru1004 doru1004 requested a review from jhuber6 December 8, 2023 03:13
@doru1004 doru1004 merged commit 1216a31 into main Dec 8, 2023
@doru1004 doru1004 deleted the revert-74799-fix-test-initializations-2 branch December 8, 2023 03:14
Copy link

github-actions bot commented Dec 8, 2023

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff d41368134478d1d41726aa85ba82f49b5bce130c 0e0ab31f0ab8b3cda2cd8005bdb54be931463405 -- openmp/libomptarget/test/offloading/back2back_distribute.c
View the diff from clang-format here.
diff --git a/openmp/libomptarget/test/offloading/back2back_distribute.c b/openmp/libomptarget/test/offloading/back2back_distribute.c
index 750e390619..cb9f52d5ec 100644
--- a/openmp/libomptarget/test/offloading/back2back_distribute.c
+++ b/openmp/libomptarget/test/offloading/back2back_distribute.c
@@ -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 *) 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));
+  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])
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openmp:libomptarget OpenMP offload runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants