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
Stephan Seitz
pystencils
Commits
5eedf7cc
Commit
5eedf7cc
authored
Jun 17, 2020
by
Markus Holzer
Browse files
corrected kerncraft typo in pytest marks
parent
25d91704
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils_tests/test_kerncraft_coupling.py
View file @
5eedf7cc
...
...
@@ -14,7 +14,7 @@ SCRIPT_FOLDER = os.path.dirname(os.path.realpath(__file__))
INPUT_FOLDER
=
os
.
path
.
join
(
SCRIPT_FOLDER
,
"kerncraft_inputs"
)
@
pytest
.
mark
.
kern
k
raft
@
pytest
.
mark
.
kern
c
raft
def
test_compilation
():
machine_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"default_machine_file.yaml"
)
machine
=
kerncraft
.
machinemodel
.
MachineModel
(
path_to_yaml
=
machine_file_path
)
...
...
@@ -36,7 +36,7 @@ def test_compilation():
print
(
mine
)
@
pytest
.
mark
.
kern
k
raft
@
pytest
.
mark
.
kern
c
raft
def
analysis
(
kernel
,
model
=
'ecmdata'
):
machine_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"default_machine_file.yaml"
)
machine
=
kerncraft
.
machinemodel
.
MachineModel
(
path_to_yaml
=
machine_file_path
)
...
...
@@ -54,7 +54,7 @@ def analysis(kernel, model='ecmdata'):
return
model
@
pytest
.
mark
.
kern
k
raft
@
pytest
.
mark
.
kern
c
raft
def
test_3d_7pt_iaca
():
# Make sure you use the intel compiler
size
=
[
20
,
200
,
200
]
...
...
@@ -82,7 +82,7 @@ def test_3d_7pt_iaca():
# assert reference.results['cl throughput'] == analysis.results['cl throughput']
@
pytest
.
mark
.
kern
k
raft
@
pytest
.
mark
.
kern
c
raft
def
test_2d_5pt
():
size
=
[
30
,
50
,
3
]
kernel_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"2d-5pt.c"
)
...
...
@@ -104,7 +104,7 @@ def test_2d_5pt():
assert
e1
==
e2
@
pytest
.
mark
.
kern
k
raft
@
pytest
.
mark
.
kern
c
raft
def
test_3d_7pt
():
size
=
[
30
,
50
,
50
]
kernel_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"3d-7pt.c"
)
...
...
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