[Openmp-commits] [openmp] Revert "[OpenMP][Fix] Fix test array initialization. (#74799)" (PR #74800)
via Openmp-commits
openmp-commits at lists.llvm.org
Thu Dec 7 19:15:00 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff d41368134478d1d41726aa85ba82f49b5bce130c 0e0ab31f0ab8b3cda2cd8005bdb54be931463405 -- openmp/libomptarget/test/offloading/back2back_distribute.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
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])
``````````
</details>
https://github.com/llvm/llvm-project/pull/74800
More information about the Openmp-commits
mailing list