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
fleur
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
54
Issues
54
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
fleur
fleur
Commits
c6a8dc8f
Commit
c6a8dc8f
authored
Mar 01, 2017
by
Daniel Wortmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a small performance test of BLAS routines.
parent
0b4b09dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
tests/small-testcodes/blas_performance.f90
tests/small-testcodes/blas_performance.f90
+47
-0
No files found.
tests/small-testcodes/blas_performance.f90
0 → 100644
View file @
c6a8dc8f
program
test_blas
INTEGER
,
PARAMETER
::
M
=
200
,
N
=
20000
COMPLEX
::
A
(
N
,
M
),
B
(
N
,
M
),
C
(
N
,
N
)
COMPLEX
::
AA
(
M
,
M
)
REAL
::
R
(
N
,
M
,
4
)
REAL
::
time1
,
time2
CALL
cpu_time
(
time1
)
CALL
random_number
(
r
)
A
=
cmplx
(
R
(:,:,
1
),
R
(:,:,
2
))
B
=
cmplx
(
R
(:,:,
3
),
R
(:,:,
4
))
C
=
0.0
AA
=
cmplx
(
R
(:
M
,:,
1
),
R
(:
M
,:,
3
))
DO
i
=
1
,
M
DO
j
=
1
,
i
AA
(
i
,
j
)
=
conjg
(
AA
(
j
,
i
))
ENDDO
AA
(
i
,
i
)
=
i
*
10
ENDDO
CALL
cpu_time
(
time2
)
print
*
,
"Init:"
,
time2
-
time1
CALL
cpu_time
(
time1
)
CALL
zgemm
(
"N"
,
"T"
,
N
,
N
,
M
,
cmplx
(
1.
,
0
),
A
,
N
,
B
,
N
,
cmplx
(
1.
,
0
),
C
,
N
)
CALL
cpu_time
(
time2
)
print
*
,
"zgemm:"
,
time2
-
time1
CALL
cpu_time
(
time1
)
CALL
zherk
(
"U"
,
"N"
,
N
,
M
,
cmplx
(
1.
,
0
),
A
,
N
,
cmplx
(
1.
,
0
),
C
,
N
)
CALL
cpu_time
(
time2
)
print
*
,
"zherk:"
,
time2
-
time1
CALL
cpu_time
(
time1
)
CALL
zher2k
(
"U"
,
"N"
,
N
,
M
,
cmplx
(
1.
,
0
),
A
,
N
,
B
,
N
,
cmplx
(
1.
,
0
),
C
,
N
)
CALL
cpu_time
(
time2
)
print
*
,
"zher2k:"
,
time2
-
time1
CALL
cpu_time
(
time1
)
CALL
zpotrf
(
"U"
,
M
,
AA
,
M
,
i
)
CALL
cpu_time
(
time2
)
print
*
,
"zpotrf:"
,
time2
-
time1
print
*
,
i
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