File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -496,6 +496,11 @@ def check_profiling_timer_resolution(device):
496
496
assert isinstance (resol , int ) and resol > 0
497
497
498
498
499
+ def check_platform (device ):
500
+ p = device .platform
501
+ assert isinstance (p , dpctl .SyclPlatform )
502
+
503
+
499
504
list_of_checks = [
500
505
check_get_max_compute_units ,
501
506
check_get_max_work_item_dims ,
@@ -552,6 +557,8 @@ def check_profiling_timer_resolution(device):
552
557
check_repr ,
553
558
check_get_global_mem_size ,
554
559
check_get_local_mem_size ,
560
+ check_profiling_timer_resolution ,
561
+ check_platform ,
555
562
]
556
563
557
564
Original file line number Diff line number Diff line change @@ -87,6 +87,11 @@ def check_repr(platform):
87
87
assert r != ""
88
88
89
89
90
+ def check_default_context (platform ):
91
+ r = platform .default_context
92
+ assert type (r ) is dpctl .SyclContext
93
+
94
+
90
95
list_of_checks = [
91
96
check_name ,
92
97
check_vendor ,
You can’t perform that action at this time.
0 commit comments