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
Stephan Seitz
pystencils
Commits
e9605ab2
Commit
e9605ab2
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Skip OpenCL tests that require pycuda if pycuda is not installed
parent
12459396
Branches
run-opencl-without-pycuda
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#19000
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils_tests/test_opencl.py
+6
-0
6 additions, 0 deletions
pystencils_tests/test_opencl.py
with
6 additions
and
0 deletions
pystencils_tests/test_opencl.py
+
6
−
0
View file @
e9605ab2
...
@@ -40,6 +40,8 @@ def test_print_opencl():
...
@@ -40,6 +40,8 @@ def test_print_opencl():
@pytest.mark.skipif
(
not
HAS_OPENCL
,
reason
=
"
Test requires pyopencl
"
)
@pytest.mark.skipif
(
not
HAS_OPENCL
,
reason
=
"
Test requires pyopencl
"
)
def
test_opencl_jit_fixed_size
():
def
test_opencl_jit_fixed_size
():
pytest
.
importorskip
(
'
pycuda
'
)
z
,
y
,
x
=
pystencils
.
fields
(
"
z, y, x: [20,30]
"
)
z
,
y
,
x
=
pystencils
.
fields
(
"
z, y, x: [20,30]
"
)
assignments
=
pystencils
.
AssignmentCollection
({
assignments
=
pystencils
.
AssignmentCollection
({
...
@@ -92,6 +94,8 @@ def test_opencl_jit_fixed_size():
...
@@ -92,6 +94,8 @@ def test_opencl_jit_fixed_size():
@pytest.mark.skipif
(
not
HAS_OPENCL
,
reason
=
"
Test requires pyopencl
"
)
@pytest.mark.skipif
(
not
HAS_OPENCL
,
reason
=
"
Test requires pyopencl
"
)
def
test_opencl_jit
():
def
test_opencl_jit
():
pytest
.
importorskip
(
'
pycuda
'
)
z
,
y
,
x
=
pystencils
.
fields
(
"
z, y, x: [2d]
"
)
z
,
y
,
x
=
pystencils
.
fields
(
"
z, y, x: [2d]
"
)
assignments
=
pystencils
.
AssignmentCollection
({
assignments
=
pystencils
.
AssignmentCollection
({
...
@@ -144,6 +148,8 @@ def test_opencl_jit():
...
@@ -144,6 +148,8 @@ def test_opencl_jit():
@pytest.mark.skipif
(
not
HAS_OPENCL
,
reason
=
"
Test requires pyopencl
"
)
@pytest.mark.skipif
(
not
HAS_OPENCL
,
reason
=
"
Test requires pyopencl
"
)
def
test_opencl_jit_with_parameter
():
def
test_opencl_jit_with_parameter
():
pytest
.
importorskip
(
'
pycuda
'
)
z
,
y
,
x
=
pystencils
.
fields
(
"
z, y, x: [2d]
"
)
z
,
y
,
x
=
pystencils
.
fields
(
"
z, y, x: [2d]
"
)
a
=
sp
.
Symbol
(
'
a
'
)
a
=
sp
.
Symbol
(
'
a
'
)
...
...
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