File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -76,19 +76,33 @@ def run(
76
76
env = env ,
77
77
)
78
78
79
+ # def find_objects():
80
+ # import os
81
+
82
+ # objects = []
83
+ # dpnp_path = os.getcwd()
84
+ # search_path = os.path.join(dpnp_path, "dpnp")
85
+ # files = os.listdir(search_path)
86
+ # for file in files:
87
+ # if file.endswith("_c.so"):
88
+ # objects.extend(["-object", os.path.join(search_path, file)])
89
+ # return objects
90
+
79
91
def find_objects ():
80
92
import os
81
93
82
94
objects = []
83
95
dpnp_path = os .getcwd ()
84
96
search_path = os .path .join (dpnp_path , "dpnp" )
85
- files = os .listdir (search_path )
86
- for file in files :
87
- if file .endswith ("_c.so" ):
88
- objects .extend (["-object" , os .path .join (search_path , file )])
97
+ for root , _ , files in os .walk (search_path ):
98
+ for file in files :
99
+ if file .endswith ("_c.so" ) or root . find ( "extensions" ) != - 1 and file . find ( "_impl.cpython" ) != - 1 :
100
+ objects .extend (["-object" , os .path .join (root , file )])
89
101
return objects
90
102
91
103
objects = find_objects ()
104
+ print ("\n objects:\n " , objects )
105
+
92
106
instr_profile_fn = "dpnp_pytest.profdata"
93
107
# generate instrumentation profile data
94
108
subprocess .check_call (
You can’t perform that action at this time.
0 commit comments