File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
dpnp/tests/third_party/cupy/statistics_tests Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
import sys
2
2
import unittest
3
3
4
+ import dpctl
4
5
import numpy
5
6
import pytest
6
7
@@ -44,6 +45,20 @@ def for_all_dtypes_combination_bincount(names):
44
45
return testing .for_dtypes_combination (_all_types , names = names )
45
46
46
47
48
+ # TODO: comments
49
+ _dev = dpctl .select_default_device ()
50
+
51
+
52
+ @pytest .fixture (autouse = True )
53
+ def setup_each ():
54
+ print ("\n [Setup] Run before each test" )
55
+ free_mem = dpctl .utils .intel_device_info (_dev ).get ("free_memory" , None )
56
+ if free_mem :
57
+ print (f"Global memory available: { free_mem } " )
58
+ yield
59
+ print ("[Teardown] Run after each test" )
60
+
61
+
47
62
class TestHistogram (unittest .TestCase ):
48
63
49
64
@testing .for_all_dtypes (no_bool = True , no_complex = True )
You can’t perform that action at this time.
0 commit comments