Skip to content
Snippets Groups Projects
Commit 162d96ad authored by Yichao Yu's avatar Yichao Yu
Browse files

test unload_platform_compiler

parent 7c640bb9
No related branches found
No related tags found
No related merge requests found
...@@ -624,6 +624,19 @@ def test_wait_for_events(ctx_factory): ...@@ -624,6 +624,19 @@ def test_wait_for_events(ctx_factory):
evt2 = cl.enqueue_marker(queue) evt2 = cl.enqueue_marker(queue)
cl.wait_for_events([evt1, evt2]) cl.wait_for_events([evt1, evt2])
def test_unload_compiler(ctx_factory):
ctx = ctx_factory()
platform = ctx.devices[0].platform
if (ctx._get_cl_version() < (1, 2) or
cl.get_cl_header_version() < (1, 2)):
from pytest import skip
skip("clUnloadPlatformCompiler is only available in OpenCL 1.2")
_skip_if_pocl(platform, 'pocl does not support unloading compiler')
if platform.vendor == "Intel(R) Corporation":
from pytest import skip
skip("Intel proprietary driver does not support unloading compiler")
cl.unload_platform_compiler(platform)
if __name__ == "__main__": if __name__ == "__main__":
# make sure that import failures get reported, instead of skipping the tests. # make sure that import failures get reported, instead of skipping the tests.
import pyopencl # noqa import pyopencl # noqa
......
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