From 3cd30bc8f3ac45ec5032801e964ba452eefdbeea Mon Sep 17 00:00:00 2001 From: Aurelien Delval Date: Thu, 7 Apr 2022 13:57:20 +0200 Subject: [PATCH] Fix OpenACC and OpenMP implementations --- org/qmckl_jastrow.org | 146 +++++++++++++++++++----------------------- 1 file changed, 65 insertions(+), 81 deletions(-) diff --git a/org/qmckl_jastrow.org b/org/qmckl_jastrow.org index b9981b5..e42a86e 100644 --- a/org/qmckl_jastrow.org +++ b/org/qmckl_jastrow.org @@ -5915,36 +5915,31 @@ qmckl_exit_code qmckl_compute_tmp_c_acc_offload (const qmckl_context context, const int64_t size_e = walk_num*(cord_num+1)*elec_num*elec_num; const int64_t size_n = walk_num*(cord_num+1)*nucl_num*elec_num; -#pragma acc parallel copyout(tmp_c [0:size_tmp_c]) copyin(een_rescaled_e[0:size_e], een_rescaled_n[0:size_n]) + #pragma acc parallel copyout(tmp_c [0:size_tmp_c]) copyin(een_rescaled_e[0:size_e], een_rescaled_n[0:size_n]) { -#pragma acc loop independent gang worker vector - for (int64_t i=0 ; i