Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyopencl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pyopencl
Commits
00f24b82
Commit
00f24b82
authored
10 years ago
by
Yichao Yu
Browse files
Options
Downloads
Patches
Plain Diff
handle new(?) crashes in pocl-0.9...
parent
5d6afa4a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_wrapper.py
+13
-1
13 additions, 1 deletion
test/test_wrapper.py
with
13 additions
and
1 deletion
test/test_wrapper.py
+
13
−
1
View file @
00f24b82
from
__future__
import
division
from
__future__
import
division
,
print_function
__copyright__
=
"
Copyright (C) 2009 Andreas Kloeckner
"
__copyright__
=
"
Copyright (C) 2009 Andreas Kloeckner
"
...
@@ -48,6 +48,8 @@ def test_get_info(ctx_factory):
...
@@ -48,6 +48,8 @@ def test_get_info(ctx_factory):
pocl_quirks
=
[
pocl_quirks
=
[
(
cl
.
Buffer
,
cl
.
mem_info
.
OFFSET
),
(
cl
.
Buffer
,
cl
.
mem_info
.
OFFSET
),
(
cl
.
Program
,
cl
.
program_info
.
BINARIES
),
(
cl
.
Program
,
cl
.
program_info
.
BINARY_SIZES
),
]
]
if
ctx
.
_get_cl_version
()
>=
(
1
,
2
)
and
cl
.
get_cl_header_version
()
>=
(
1
,
2
):
if
ctx
.
_get_cl_version
()
>=
(
1
,
2
)
and
cl
.
get_cl_header_version
()
>=
(
1
,
2
):
pocl_quirks
.
extend
([
pocl_quirks
.
extend
([
...
@@ -69,6 +71,9 @@ def test_get_info(ctx_factory):
...
@@ -69,6 +71,9 @@ def test_get_info(ctx_factory):
((
"
The pocl project
"
,
"
Portable Computing Language
"
,
((
"
The pocl project
"
,
"
Portable Computing Language
"
,
"
OpenCL 1.2 pocl 0.9-pre
"
),
"
OpenCL 1.2 pocl 0.9-pre
"
),
pocl_quirks
),
pocl_quirks
),
((
"
The pocl project
"
,
"
Portable Computing Language
"
,
"
OpenCL 1.2 pocl 0.9
"
),
pocl_quirks
),
((
"
Apple
"
,
"
Apple
"
,
((
"
Apple
"
,
"
Apple
"
,
"
OpenCL 1.2 (Apr 25 2013 18:32:06)
"
),
"
OpenCL 1.2 (Apr 25 2013 18:32:06)
"
),
[
[
...
@@ -584,6 +589,13 @@ def test_context_dep_memoize(ctx_factory):
...
@@ -584,6 +589,13 @@ def test_context_dep_memoize(ctx_factory):
def
test_can_build_binary
(
ctx_factory
):
def
test_can_build_binary
(
ctx_factory
):
ctx
=
ctx_factory
()
ctx
=
ctx_factory
()
device
,
=
ctx
.
devices
device
,
=
ctx
.
devices
platform
=
device
.
platform
if
(
platform
.
vendor
==
"
The pocl project
"
and
platform
.
name
==
"
Portable Computing Language
"
):
# Segfault on pocl 0.9
from
pytest
import
skip
skip
(
"
pocl doesn
'
t like getting PROGRAM_BINARIES
"
)
program
=
cl
.
Program
(
ctx
,
"""
program
=
cl
.
Program
(
ctx
,
"""
__kernel void simple(__global float *in, __global float *out)
__kernel void simple(__global float *in, __global float *out)
...
...
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