Skip to content

Commit 39d5dc8

Browse files
committed
Add is_lnl() test helper function
1 parent 266faed commit 39d5dc8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dpnp/tests/helper.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,13 @@ def is_iris_xe(device=None):
455455
return _get_dev_mask(device) == 0x9A00
456456

457457

458+
def is_lnl(device=None):
459+
"""
460+
Return True if a test is running on Lunar Lake GPU device, False otherwise.
461+
"""
462+
return _get_dev_mask(device) == 0x6400
463+
464+
458465
def is_lts_driver(device=None):
459466
"""
460467
Return True if a test is running on a GPU device with LTS driver version,

0 commit comments

Comments
 (0)