test_device.py 391 Bytes
Newer Older
1
2
3
4
5
"""
PYTHONPATH=/path-to-LightX2V PLATFORM=cuda python test_device.py
PYTHONPATH=/path-to-LightX2V PLATFORM=mlu python test_device.py
PYTHONPATH=/path-to-LightX2V PLATFORM=metax python test_device.py
"""
6

7
8
9
# This import will initialize the AI device
import lightx2v_platform.set_ai_device  # noqa: F401
from lightx2v_platform.base.global_var import AI_DEVICE
10

11
print(f"AI_DEVICE: {AI_DEVICE}")