Skip to content

Commit

Permalink
ELPA: Fix AUTO kernel resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Feb 16, 2021
1 parent 0045df2 commit d584df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fm/cp_fm_elpa.F
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ SUBROUTINE set_elpa_kernel(requested_kernel)
elpa_kernel = requested_kernel

! Resolve AUTO kernel.
IF (requested_kernel == ELPA_2STAGE_REAL_INVALID) THEN
IF (elpa_kernel == ELPA_2STAGE_REAL_INVALID) THEN
cpuid = m_cpuid()
IF ((MACHINE_CPU_GENERIC .LT. cpuid) .AND. (cpuid .LE. MACHINE_X86)) THEN
SELECT CASE (cpuid)
Expand All @@ -222,7 +222,7 @@ SUBROUTINE set_elpa_kernel(requested_kernel)
CALL elpa_deallocate(elpa_obj)

! If we could not find a suitable kernel then use ELPA_2STAGE_REAL_DEFAULT.
IF (requested_kernel == ELPA_2STAGE_REAL_INVALID) THEN
IF (elpa_kernel == ELPA_2STAGE_REAL_INVALID) THEN
elpa_kernel = ELPA_2STAGE_REAL_DEFAULT
ENDIF
END IF
Expand Down

0 comments on commit d584df3

Please sign in to comment.