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 11import sys
22import unittest
33
4+ import dpctl
45import numpy
56import pytest
67
@@ -44,6 +45,20 @@ def for_all_dtypes_combination_bincount(names):
4445 return testing .for_dtypes_combination (_all_types , names = names )
4546
4647
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+
4762class TestHistogram (unittest .TestCase ):
4863
4964 @testing .for_all_dtypes (no_bool = True , no_complex = True )
You can’t perform that action at this time.
0 commit comments