Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
5eedf7cc
Commit
5eedf7cc
authored
4 years ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
corrected kerncraft typo in pytest marks
parent
25d91704
No related branches found
No related tags found
1 merge request
!158
Adapted test cases to Sympy Version 1.6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils_tests/test_kerncraft_coupling.py
+5
-5
5 additions, 5 deletions
pystencils_tests/test_kerncraft_coupling.py
with
5 additions
and
5 deletions
pystencils_tests/test_kerncraft_coupling.py
+
5
−
5
View file @
5eedf7cc
...
@@ -14,7 +14,7 @@ SCRIPT_FOLDER = os.path.dirname(os.path.realpath(__file__))
...
@@ -14,7 +14,7 @@ SCRIPT_FOLDER = os.path.dirname(os.path.realpath(__file__))
INPUT_FOLDER
=
os
.
path
.
join
(
SCRIPT_FOLDER
,
"
kerncraft_inputs
"
)
INPUT_FOLDER
=
os
.
path
.
join
(
SCRIPT_FOLDER
,
"
kerncraft_inputs
"
)
@pytest.mark.kern
k
raft
@pytest.mark.kern
c
raft
def
test_compilation
():
def
test_compilation
():
machine_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"
default_machine_file.yaml
"
)
machine_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"
default_machine_file.yaml
"
)
machine
=
kerncraft
.
machinemodel
.
MachineModel
(
path_to_yaml
=
machine_file_path
)
machine
=
kerncraft
.
machinemodel
.
MachineModel
(
path_to_yaml
=
machine_file_path
)
...
@@ -36,7 +36,7 @@ def test_compilation():
...
@@ -36,7 +36,7 @@ def test_compilation():
print
(
mine
)
print
(
mine
)
@pytest.mark.kern
k
raft
@pytest.mark.kern
c
raft
def
analysis
(
kernel
,
model
=
'
ecmdata
'
):
def
analysis
(
kernel
,
model
=
'
ecmdata
'
):
machine_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"
default_machine_file.yaml
"
)
machine_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"
default_machine_file.yaml
"
)
machine
=
kerncraft
.
machinemodel
.
MachineModel
(
path_to_yaml
=
machine_file_path
)
machine
=
kerncraft
.
machinemodel
.
MachineModel
(
path_to_yaml
=
machine_file_path
)
...
@@ -54,7 +54,7 @@ def analysis(kernel, model='ecmdata'):
...
@@ -54,7 +54,7 @@ def analysis(kernel, model='ecmdata'):
return
model
return
model
@pytest.mark.kern
k
raft
@pytest.mark.kern
c
raft
def
test_3d_7pt_iaca
():
def
test_3d_7pt_iaca
():
# Make sure you use the intel compiler
# Make sure you use the intel compiler
size
=
[
20
,
200
,
200
]
size
=
[
20
,
200
,
200
]
...
@@ -82,7 +82,7 @@ def test_3d_7pt_iaca():
...
@@ -82,7 +82,7 @@ def test_3d_7pt_iaca():
# assert reference.results['cl throughput'] == analysis.results['cl throughput']
# assert reference.results['cl throughput'] == analysis.results['cl throughput']
@pytest.mark.kern
k
raft
@pytest.mark.kern
c
raft
def
test_2d_5pt
():
def
test_2d_5pt
():
size
=
[
30
,
50
,
3
]
size
=
[
30
,
50
,
3
]
kernel_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"
2d-5pt.c
"
)
kernel_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"
2d-5pt.c
"
)
...
@@ -104,7 +104,7 @@ def test_2d_5pt():
...
@@ -104,7 +104,7 @@ def test_2d_5pt():
assert
e1
==
e2
assert
e1
==
e2
@pytest.mark.kern
k
raft
@pytest.mark.kern
c
raft
def
test_3d_7pt
():
def
test_3d_7pt
():
size
=
[
30
,
50
,
50
]
size
=
[
30
,
50
,
50
]
kernel_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"
3d-7pt.c
"
)
kernel_file_path
=
os
.
path
.
join
(
INPUT_FOLDER
,
"
3d-7pt.c
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment