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
f2c0cd80
Commit
f2c0cd80
authored
15 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Add crash quirk for 195.17 NV driver.
parent
b922878c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
test/test_wrapper.py
+18
-5
18 additions, 5 deletions
test/test_wrapper.py
with
19 additions
and
5 deletions
.gitignore
+
1
−
0
View file @
f2c0cd80
...
...
@@ -43,3 +43,4 @@ MANIFEST
*.BASE.[0-9]*
tmp
temp*
setuptools.pth
This diff is collapsed.
Click to expand it.
test/test_wrapper.py
+
18
−
5
View file @
f2c0cd80
...
...
@@ -26,15 +26,23 @@ class TestCL:
def
test_get_info
(
self
,
platform
,
device
):
had_failures
=
[
False
]
QUIRKS
=
[
(
"
NVIDIA
"
,
[
(
cl
.
Device
,
cl
.
device_info
.
PLATFORM
),
CRASH_QUIRKS
=
[
((
"
NVIDIA Corporation
"
,
"
NVIDIA CUDA
"
,
"
OpenCL 1.0 CUDA 3.0.1
"
),
[
(
cl
.
Event
,
cl
.
event_info
.
COMMAND_QUEUE
),
]),
]
QUIRKS
=
[]
plat_quirk_key
=
(
platform
.
vendor
,
platform
.
name
,
platform
.
version
)
def
find_quirk
(
quirk_list
,
cl_obj
,
info
):
for
quirk
_plat_
name
,
quirks
in
quirk_list
:
if
quirk
_plat_
name
in
platform
.
name
:
for
entry
_plat_
key
,
quirks
in
quirk_list
:
if
entry
_plat_
key
==
plat_quirk_key
:
for
quirk_cls
,
quirk_info
in
quirks
:
if
(
isinstance
(
cl_obj
,
quirk_cls
)
and
quirk_info
==
info
):
...
...
@@ -51,6 +59,11 @@ class TestCL:
if
not
info_name
.
startswith
(
"
_
"
)
and
info_name
!=
"
to_string
"
:
info
=
getattr
(
info_cls
,
info_name
)
if
find_quirk
(
CRASH_QUIRKS
,
cl_obj
,
info
):
print
"
not executing get_info
"
,
type
(
cl_obj
),
info_name
print
"
(known crash quirk for %s)
"
%
platform
.
name
continue
try
:
func
(
info
)
except
:
...
...
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