Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elpa
elpa
Commits
8368a0fe
Commit
8368a0fe
authored
Jan 13, 2021
by
Andreas Marek
Browse files
Rename some forgotten OPENMP preprocessor statements
parent
62299f15
Changes
8
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/elpa1/elpa_solve_tridi_impl_public.F90
View file @
8368a0fe
...
...
@@ -93,7 +93,7 @@
matrixRows
=
obj
%
local_nrows
matrixCols
=
obj
%
local_ncols
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
! store the number of OpenMP threads used in the calling function
! restore this at the end of ELPA 2
omp_threads_caller
=
omp_get_max_threads
()
...
...
@@ -141,7 +141,7 @@
! restore original OpenMP settings
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
! store the number of OpenMP threads used in the calling function
! restore this at the end of ELPA 2
call
omp_set_num_threads
(
omp_threads_caller
)
...
...
src/solve_tridi/global_gather_template.F90
View file @
8368a0fe
...
...
@@ -8,7 +8,7 @@ subroutine global_gather_&
use
precision
use
elpa_abstract_impl
use
elpa_mpi
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
use
elpa_omp
#endif
implicit
none
...
...
src/solve_tridi/global_product_template.F90
View file @
8368a0fe
...
...
@@ -5,7 +5,7 @@ subroutine global_product_&
use
precision
use
elpa_abstract_impl
use
elpa_mpi
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
!use elpa_omp
#endif
implicit
none
...
...
src/solve_tridi/merge_recursive_template.F90
View file @
8368a0fe
...
...
@@ -9,7 +9,7 @@ recursive subroutine merge_recursive_&
use
precision
use
elpa_abstract_impl
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
use
elpa_omp
#endif
use
elpa_mpi
...
...
src/solve_tridi/merge_systems_template.F90
View file @
8368a0fe
...
...
@@ -74,7 +74,7 @@
use
ELPA_utilities
use
elpa_mpi
use
solve_secular_equation
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
use
omp_lib
#endif
implicit
none
...
...
@@ -103,7 +103,7 @@
dbase
(
na
),
ddiff
(
na
),
ev_scale
(
na
),
tmp
(
na
)
real
(
kind
=
REAL_DATATYPE
)
::
d1u
(
na
),
zu
(
na
),
d1l
(
na
),
zl
(
na
)
real
(
kind
=
REAL_DATATYPE
),
allocatable
::
qtmp1
(:,:),
qtmp2
(:,:),
ev
(:,:)
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
real
(
kind
=
REAL_DATATYPE
),
allocatable
::
z_p
(:,:)
#endif
...
...
@@ -132,7 +132,7 @@
&
PRECISION
&
&
_
real
integer
(
kind
=
ik
),
intent
(
in
)
::
max_threads
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
integer
(
kind
=
ik
)
::
my_thread
allocate
(
z_p
(
na
,
0
:
max_threads
-1
),
stat
=
istat
,
errmsg
=
errorMessage
)
...
...
@@ -460,7 +460,7 @@
! Solve secular equation
z
(
1
:
na1
)
=
1
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
z_p
(
1
:
na1
,:)
=
1
#endif
dbase
(
1
:
na1
)
=
0
...
...
@@ -468,7 +468,7 @@
info
=
0
infoBLAS
=
int
(
info
,
kind
=
BLAS_KIND
)
!#ifdef WITH_OPENMP
!#ifdef WITH_OPENMP
_TRADITIONAL
!
! call obj%timer%start("OpenMP parallel" // PRECISION_SUFFIX)
!!$OMP PARALLEL PRIVATE(i,my_thread,delta,s,info,infoBLAS,j)
...
...
@@ -492,7 +492,7 @@
! Compute updated z
!#ifdef WITH_OPENMP
!#ifdef WITH_OPENMP
_TRADITIONAL
! do j=1,na1
! if (i/=j) z_p(j,my_thread) = z_p(j,my_thread)*( delta(j) / (d1(j)-d1(i)) )
! enddo
...
...
@@ -518,7 +518,7 @@
ddiff
(
i
)
=
delta
(
i
)
endif
enddo
!#ifdef WITH_OPENMP
!#ifdef WITH_OPENMP
_TRADITIONAL
!!$OMP END PARALLEL
!
! call obj%timer%stop("OpenMP parallel" // PRECISION_SUFFIX)
...
...
@@ -544,7 +544,7 @@
! Calculate scale factors for eigenvectors
ev_scale
(:)
=
0.0_rk
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
call
obj
%
timer
%
start
(
"OpenMP parallel"
//
PRECISION_SUFFIX
)
...
...
@@ -566,7 +566,7 @@
&(
obj
,
d1
,
dbase
,
ddiff
,
z
,
ev_scale
(
i
),
na1
,
i
)
! ev_scale(i) = ev_scale_val
enddo
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
!$OMP END PARALLEL DO
call
obj
%
timer
%
stop
(
"OpenMP parallel"
//
PRECISION_SUFFIX
)
...
...
@@ -906,7 +906,7 @@
deallocate
(
ev
,
qtmp1
,
qtmp2
,
stat
=
istat
,
errmsg
=
errorMessage
)
check_deallocate
(
"merge_systems: ev, qtmp1, qtmp2"
,
istat
,
errorMessage
)
endif
!very outer test (na1==1 .or. na1==2)
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
deallocate
(
z_p
,
stat
=
istat
,
errmsg
=
errorMessage
)
check_deallocate
(
"merge_systems: z_p"
,
istat
,
errorMessage
)
#endif
...
...
src/solve_tridi/resort_ev_template.F90
View file @
8368a0fe
...
...
@@ -5,7 +5,7 @@ subroutine resort_ev_&
&(
obj
,
idx_ev
,
nLength
,
na
,
p_col_out
,
q
,
ldq
,
matrixCols
,
l_rows
,
l_rqe
,
l_rqs
,
&
mpi_comm_cols
,
p_col
,
l_col
,
l_col_out
)
use
precision
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
use
elpa_omp
#endif
use
elpa_mpi
...
...
src/solve_tridi/transform_columns_template.F90
View file @
8368a0fe
...
...
@@ -4,7 +4,7 @@ subroutine transform_columns_&
l_rows
,
mpi_comm_cols
,
p_col
,
l_col
,
qtrans
)
use
precision
use
elpa_abstract_impl
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
use
elpa_omp
#endif
use
elpa_mpi
...
...
test/Fortran/test.F90
View file @
8368a0fe
...
...
@@ -134,7 +134,7 @@ program test
#ifdef HAVE_REDIRECT
use
test_redirect
#endif
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
use
omp_lib
#endif
use
precision_for_tests
...
...
@@ -196,7 +196,7 @@ program test
do_test_toeplitz_eigenvalues
,
do_test_cholesky
,
&
do_test_hermitian_multiply
logical
::
ignoreError
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
TEST_INT_TYPE
::
max_threads
,
threads_caller
#endif
...
...
@@ -564,7 +564,7 @@ program test
endif
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
threads_caller
=
omp_get_max_threads
()
if
(
myid
==
0
)
then
print
*
,
"The calling program uses "
,
threads_caller
,
" threads"
...
...
@@ -646,7 +646,7 @@ program test
assert_elpa_ok
(
error_elpa
)
#endif
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
max_threads
=
omp_get_max_threads
()
call
e
%
set
(
"omp_threads"
,
int
(
max_threads
,
kind
=
c_int
),
error_elpa
)
assert_elpa_ok
(
error_elpa
)
...
...
@@ -855,7 +855,7 @@ program test
#endif
#ifdef WITH_OPENMP
#ifdef WITH_OPENMP
_TRADITIONAL
if
(
threads_caller
.ne.
omp_get_max_threads
())
then
if
(
myid
.eq.
0
)
then
print
*
,
" ERROR! the number of OpenMP threads has not been restored correctly"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment