Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
elpa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
elpa
elpa
Commits
b917fb9a
Commit
b917fb9a
authored
Apr 21, 2017
by
Lorenz Huedepohl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return "SKIP" error code for skipped QR tests
parent
222df316
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
22 deletions
+26
-22
test/Fortran/test_real2_qr.F90
test/Fortran/test_real2_qr.F90
+14
-11
test/Fortran/test_real2_qr_single.F90
test/Fortran/test_real2_qr_single.F90
+12
-11
No files found.
test/Fortran/test_real2_qr.F90
View file @
b917fb9a
...
...
@@ -125,7 +125,7 @@ program test_real2_default_kernel_qr_decomposition_double_precision
real
(
kind
=
rk8
),
allocatable
::
a
(:,:),
z
(:,:),
as
(:,:),
ev
(:)
integer
(
kind
=
ik
)
::
STATUS
integer
(
kind
=
ik
)
::
ret
#ifdef WITH_OPENMP
integer
(
kind
=
ik
)
::
omp_get_max_threads
,
required_mpi_thread_level
,
provided_mpi_thread_level
#endif
...
...
@@ -173,20 +173,23 @@ program test_real2_default_kernel_qr_decomposition_double_precision
gpuAvailable
=
check_for_gpu
(
myid
,
numberOfDevices
)
STATUS
=
0
ret
=
0
if
(
nblk
.lt.
64
)
then
status
=
1
if
(
myid
.eq.
0
)
print
*
,
"At the moment QR decomposition need blocksize of at least 64"
if
(
na
.lt.
64
)
then
if
(
myid
.eq.
0
)
print
*
,
"This is why the matrix size must also be at least 64 or only 1 MPI task can be used"
ret
=
1
if
(
myid
.eq.
0
)
then
print
*
,
"At the moment QR decomposition need blocksize of at least 64"
endif
if
((
na
.lt.
64
)
.and.
(
myid
.eq.
0
))
then
print
*
,
"This is why the matrix size must also be at least 64 or only 1 MPI task can be used"
endif
#ifdef WITH_MPI
call
mpi_finalize
(
mpierr
)
call
mpi_finalize
(
mpierr
)
#endif
call
EXIT
(
0
)
stop
77
endif
#define REALCASE
#include "elpa_print_headers.X90"
...
...
@@ -378,7 +381,7 @@ program test_real2_default_kernel_qr_decomposition_double_precision
!-------------------------------------------------------------------------------
! Test correctness of result (using plain scalapack routines)
status
=
check_correctness_double
(
na
,
nev
,
as
,
z
,
ev
,
sc_desc
,
myid
)
ret
=
check_correctness_double
(
na
,
nev
,
as
,
z
,
ev
,
sc_desc
,
myid
)
deallocate
(
a
)
deallocate
(
as
)
...
...
@@ -398,7 +401,7 @@ program test_real2_default_kernel_qr_decomposition_double_precision
call
blacs_gridexit
(
my_blacs_ctxt
)
call
mpi_finalize
(
mpierr
)
#endif
call
EXIT
(
STATUS
)
call
exit
(
ret
)
end
!-------------------------------------------------------------------------------
test/Fortran/test_real2_qr_single.F90
View file @
b917fb9a
...
...
@@ -125,7 +125,7 @@ program test_real2_default_kernel_qr_decomposition_single_precision
real
(
kind
=
rk4
),
allocatable
::
a
(:,:),
z
(:,:),
as
(:,:),
ev
(:)
integer
(
kind
=
ik
)
::
STATUS
integer
(
kind
=
ik
)
::
ret
#ifdef WITH_OPENMP
integer
(
kind
=
ik
)
::
omp_get_max_threads
,
required_mpi_thread_level
,
provided_mpi_thread_level
#endif
...
...
@@ -178,19 +178,20 @@ program test_real2_default_kernel_qr_decomposition_single_precision
gpuAvailable
=
check_for_gpu
(
myid
,
numberOfDevices
)
STATUS
=
0
ret
=
0
if
(
nblk
.lt.
64
)
then
status
=
1
if
(
myid
.eq.
0
)
print
*
,
"At the moment QR decomposition need blocksize of at least 64"
if
(
na
.lt.
64
)
then
if
(
myid
.eq.
0
)
print
*
,
"This is why the matrix size must also be at least 64 or only 1 MPI task can be used"
ret
=
1
if
(
myid
.eq.
0
)
then
print
*
,
"At the moment QR decomposition need blocksize of at least 64"
endif
if
((
na
.lt.
64
)
.and.
(
myid
.eq.
0
))
then
print
*
,
"This is why the matrix size must also be at least 64 or only 1 MPI task can be used"
endif
#ifdef WITH_MPI
call
mpi_finalize
(
mpierr
)
call
mpi_finalize
(
mpierr
)
#endif
call
EXIT
(
0
)
stop
77
endif
#define REALCASE
...
...
@@ -384,7 +385,7 @@ program test_real2_default_kernel_qr_decomposition_single_precision
!-------------------------------------------------------------------------------
! Test correctness of result (using plain scalapack routines)
status
=
check_correctness_single
(
na
,
nev
,
as
,
z
,
ev
,
sc_desc
,
myid
)
ret
=
check_correctness_single
(
na
,
nev
,
as
,
z
,
ev
,
sc_desc
,
myid
)
deallocate
(
a
)
deallocate
(
as
)
...
...
@@ -403,7 +404,7 @@ program test_real2_default_kernel_qr_decomposition_single_precision
call
blacs_gridexit
(
my_blacs_ctxt
)
call
mpi_finalize
(
mpierr
)
#endif
call
EXIT
(
STATUS
)
call
exit
(
ret
)
end
!-------------------------------------------------------------------------------
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