Skip to content

Commit c01c80e

Browse files
Remove merge strings
1 parent 0beca91 commit c01c80e

File tree

1 file changed

+0
-86
lines changed

1 file changed

+0
-86
lines changed

GPU/GPUTracking/Base/GPUReconstructionCPU.cxx

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -215,92 +215,6 @@ int32_t GPUReconstructionCPU::ExitDevice()
215215
return 0;
216216
}
217217

218-
<<<<<<< Updated upstream
219-
namespace
220-
{
221-
void writeHeaderMarkdown(std::ostream& stream)
222-
{
223-
stream << "| | count | name | gpu (us) | cpu (us) | cpu/tot | tot (us) | GB/s | bytes | bytes/call |\n";
224-
stream << "|---|--------|-------------------------------------------|-----------|-----------|---------|-----------|-----------|---------------|---------------|\n";
225-
}
226-
227-
void writeHeaderCSV(std::ostream& stream)
228-
{
229-
stream << "type,count,name,gpu (us),cpu (us),cpu/total,total (us),GB/s,bytes,bytes/call\n";
230-
}
231-
232-
struct Row {
233-
char type = ' ';
234-
std::string name;
235-
uint32_t count = 0;
236-
double gpu_time = -1.0;
237-
double cpu_time = -1.0;
238-
double total_time = -1.0;
239-
uint32_t memSize = 0;
240-
uint32_t statNEvents;
241-
242-
void writeMarkdown(std::ostream& stream)
243-
{
244-
double scale = 1000000.0 / statNEvents;
245-
stream << "| " << type << " | ";
246-
if (count != 0)
247-
stream << std::format("{:6} |", count);
248-
else
249-
stream << " |";
250-
stream << std::format(" {:42}|", name);
251-
if (gpu_time != -1.0)
252-
stream << std::format("{:10.0f} |", gpu_time * scale);
253-
else
254-
stream << " |";
255-
if (cpu_time != -1.0)
256-
stream << std::format("{:10.0f} |", cpu_time * scale);
257-
else
258-
stream << " |";
259-
if (cpu_time != -1.0 && total_time != -1.0)
260-
stream << std::format("{:8.2f} |", cpu_time / total_time);
261-
else
262-
stream << " |";
263-
if (total_time != -1.0)
264-
stream << std::format("{:10.0f} |", total_time * scale);
265-
else
266-
stream << " |";
267-
if (memSize != 0 && count != 0)
268-
stream << std::format("{:10.3f} |{:14} |{:14} |", memSize / gpu_time * 1e-9, memSize / statNEvents, memSize / statNEvents / count);
269-
else
270-
stream << " | | |";
271-
stream << std::endl;
272-
}
273-
274-
void writeCSV(std::ostream& stream)
275-
{
276-
double scale = 1000000.0 / statNEvents;
277-
stream << type << ",";
278-
if (count != 0)
279-
stream << count;
280-
stream << "," << name << ",";
281-
if (gpu_time != -1.0)
282-
stream << std::format("{:.0f}", gpu_time * scale);
283-
stream << ",";
284-
if (cpu_time != -1.0)
285-
stream << std::format("{:.0f}", cpu_time * scale);
286-
stream << ",";
287-
if (cpu_time != -1.0 && total_time != -1.0)
288-
stream << std::format("{:.2f}", cpu_time / total_time);
289-
stream << ",";
290-
if (total_time != -1.0)
291-
stream << std::format("{:.0f}", total_time * scale);
292-
stream << ",";
293-
if (memSize != 0 && count != 0)
294-
stream << std::format("{:.3f},{},{}", memSize / gpu_time * 1e-9, memSize / statNEvents, memSize / statNEvents / count);
295-
else
296-
stream << ",,";
297-
stream << std::endl;
298-
}
299-
};
300-
} // namespace
301-
302-
=======
303-
>>>>>>> Stashed changes
304218
int32_t GPUReconstructionCPU::RunChains()
305219
{
306220
mMemoryScalers->temporaryFactor = 1.;

0 commit comments

Comments
 (0)