From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= Date: Mon, 30 Aug 2021 11:19:10 +0200 Subject: add also the CPU devices for tests --- gpyfft/test/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpyfft/test/util.py b/gpyfft/test/util.py index ea8bf54..0a7eeed 100644 --- a/gpyfft/test/util.py +++ b/gpyfft/test/util.py @@ -7,6 +7,8 @@ def get_contexts(): ALL_DEVICES = [] for platform in cl.get_platforms(): ALL_DEVICES += platform.get_devices(device_type = cl.device_type.GPU) + for platform in cl.get_platforms(): + ALL_DEVICES += platform.get_devices(device_type = cl.device_type.CPU) contexts = [ cl.Context([device]) for device in ALL_DEVICES ] return contexts