diff options
Diffstat (limited to 'tests/performance/api/device.py')
-rw-r--r-- | tests/performance/api/device.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/performance/api/device.py b/tests/performance/api/device.py new file mode 100644 index 00000000000..4a5db54a911 --- /dev/null +++ b/tests/performance/api/device.py @@ -0,0 +1,15 @@ + +from . import TestEnvironment + +class TestDevice: + def __init__(self, name: str): + self.name = name + +class TestMachine: + def __init__(self, env: TestEnvironment): + # TODO: implement device detection, matching Blender Benchmark. + self.devices = [TestDevice('CPU')] + + def cpu_device(self) -> str: + return self.devices[0] + |