File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -98,16 +98,6 @@ int main( int argc, char *argv[] )
9898 }
9999 }
100100
101- if (tracing_enabled) {
102- zel_tracer_desc_t tracer_desc = {ZEL_STRUCTURE_TYPE_TRACER_EXP_DESC, nullptr ,
103- nullptr };
104- status = zelTracerCreate (&tracer_desc, &tracer);
105- if (status != ZE_RESULT_SUCCESS) {
106- std::cout << " zelTracerCreate Failed with return code: " << to_string (status) << std::endl;
107- exit (1 );
108- }
109- }
110-
111101 if (legacy_init) {
112102 status = zeDriverGet (&driverCount, nullptr );
113103 if (status != ZE_RESULT_SUCCESS) {
@@ -154,6 +144,15 @@ int main( int argc, char *argv[] )
154144 std::cout << " No valid device found for Driver #" << driver_idx << std::endl;
155145 continue ;
156146 }
147+ if (tracing_enabled) {
148+ zel_tracer_desc_t tracer_desc = {ZEL_STRUCTURE_TYPE_TRACER_EXP_DESC, nullptr ,
149+ nullptr };
150+ status = zelTracerCreate (&tracer_desc, &tracer);
151+ if (status != ZE_RESULT_SUCCESS) {
152+ std::cout << " zelTracerCreate Failed with return code: " << to_string (status) << std::endl;
153+ exit (1 );
154+ }
155+ }
157156 pDriver = drivers[driver_idx];
158157 pDevice = devices_per_driver[driver_idx];
159158 std::cout << " Executing on Driver #" << driver_idx << " , Device #" << 0 << std::endl;
You can’t perform that action at this time.
0 commit comments