File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -622,6 +622,18 @@ def check_device_type(device):
622
622
assert type (dt ) is dpctl .device_type
623
623
624
624
625
+ def check_max_clock_frequency (device ):
626
+ freq = device .max_clock_frequency
627
+ assert isinstance (freq , int )
628
+ assert freq > 0
629
+
630
+
631
+ def check_max_mem_alloc_size (device ):
632
+ mmas = device .max_mem_alloc_size
633
+ assert isinstance (mmas , int )
634
+ assert mmas > 0
635
+
636
+
625
637
def check_global_mem_cache_type (device ):
626
638
gmc_ty = device .global_mem_cache_type
627
639
assert type (gmc_ty ) is dpctl .global_mem_cache_type
@@ -719,6 +731,8 @@ def check_global_mem_cache_line_size(device):
719
731
check_global_mem_cache_type ,
720
732
check_global_mem_cache_size ,
721
733
check_global_mem_cache_line_size ,
734
+ check_max_clock_frequency ,
735
+ check_max_mem_alloc_size ,
722
736
]
723
737
724
738
You can’t perform that action at this time.
0 commit comments