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
15
Issues
15
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
724c1e96
Commit
724c1e96
authored
Jun 01, 2017
by
Lorenz Hüdepohl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto generated test_programs.am was put in wrong directory
parent
2f8f6d56
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
.gitignore
.gitignore
+1
-0
autogen.sh
autogen.sh
+1
-1
generate_automake_test_programs.py
generate_automake_test_programs.py
+10
-12
No files found.
.gitignore
View file @
724c1e96
...
...
@@ -25,3 +25,4 @@ m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
test_programs.am
autogen.sh
View file @
724c1e96
...
...
@@ -5,5 +5,5 @@ mkdir -p m4/
test
-n
"
$srcdir
"
||
srcdir
=
`
dirname
"
$0
"
`
test
-n
"
$srcdir
"
||
srcdir
=
.
$srcdir
/generate_automake_test_programs.py
$srcdir
/generate_automake_test_programs.py
>
$srcdir
/test_programs.am
autoreconf
--force
--install
--verbose
"
$srcdir
"
generate_automake_test_programs.py
View file @
724c1e96
...
...
@@ -19,8 +19,6 @@ gpu_flag = {
1
:
"-DTEST_GPU=1"
,
}
f
=
open
(
"test_programs.am"
,
"w"
)
for
g
,
p
,
d
,
s
in
product
(
sorted
(
gpu_flag
.
keys
()),
sorted
(
prec_flag
.
keys
()),
sorted
(
domain_flag
.
keys
()),
...
...
@@ -28,30 +26,30 @@ for g, p, d, s in product(sorted(gpu_flag.keys()),
endifs
=
0
extra_flags
=
[]
if
(
g
==
1
):
print
(
"if WITH_GPU_VERSION"
,
file
=
f
)
print
(
"if WITH_GPU_VERSION"
)
endifs
+=
1
if
s
==
"2stage"
:
extra_flags
.
append
(
"-DTEST_KERNEL=ELPA_2STAGE_{0}_GPU"
.
format
(
d
.
upper
()))
if
(
p
==
"single"
):
if
(
d
==
"real"
):
print
(
"if WANT_SINGLE_PRECISION_REAL"
,
file
=
f
)
print
(
"if WANT_SINGLE_PRECISION_REAL"
)
elif
(
d
==
"complex"
):
print
(
"if WANT_SINGLE_PRECISION_COMPLEX"
,
file
=
f
)
print
(
"if WANT_SINGLE_PRECISION_COMPLEX"
)
else
:
raise
Exception
(
"Oh no!"
)
endifs
+=
1
name
=
"test_{0}_{1}_{2}{3}"
.
format
(
d
,
p
,
s
,
"_gpu"
if
g
else
""
)
print
(
"noinst_PROGRAMS += "
+
name
,
file
=
f
)
print
(
"check_SCRIPTS += "
+
name
+
".sh"
,
file
=
f
)
print
(
name
+
"_SOURCES = test/Fortran/test.F90"
,
file
=
f
)
print
(
name
+
"_LDADD = $(build_lib) $(FCLIBS)"
,
file
=
f
)
print
(
name
+
"_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules
\\
"
,
file
=
f
)
print
(
"noinst_PROGRAMS += "
+
name
)
print
(
"check_SCRIPTS += "
+
name
+
".sh"
)
print
(
name
+
"_SOURCES = test/Fortran/test.F90"
)
print
(
name
+
"_LDADD = $(build_lib) $(FCLIBS)"
)
print
(
name
+
"_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules
\\
"
)
print
(
" "
+
"
\\\n
"
.
join
([
domain_flag
[
d
],
prec_flag
[
p
],
solver_flag
[
s
],
gpu_flag
[
g
]]
+
extra_flags
)
,
file
=
f
)
gpu_flag
[
g
]]
+
extra_flags
))
print
(
"endif
\n
"
*
endifs
,
file
=
f
)
print
(
"endif
\n
"
*
endifs
)
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