Skip to content
Snippets Groups Projects
Commit f2c0cd80 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Add crash quirk for 195.17 NV driver.

parent b922878c
No related branches found
No related tags found
No related merge requests found
......@@ -43,3 +43,4 @@ MANIFEST
*.BASE.[0-9]*
tmp
temp*
setuptools.pth
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment