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

Fix SVM test gating

parent f356535b
No related branches found
No related tags found
1 merge request!26Unskip a few tests for pocl 1.0
Pipeline #
......@@ -946,11 +946,13 @@ def test_coarse_grain_svm(ctx_factory):
dev = ctx.devices[0]
has_svm = (ctx._get_cl_version() < (2, 0) or
cl.get_cl_header_version() < (2, 0))
has_svm = (ctx._get_cl_version() >= (2, 0) and
cl.get_cl_header_version() >= (2, 0))
if dev.platform.name == "Portable Computing Language":
has_svm = get_pocl_version(dev.platform) >= (1, 0)
has_svm = (
get_pocl_version(dev.platform) >= (1, 0)
and cl.get_cl_header_version() >= (2, 0))
if not has_svm:
from pytest import skip
......
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