Skip to content

Commit

Permalink
compute timing
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Waleffe authored and Roger Waleffe committed Nov 21, 2023
1 parent 6c55243 commit d9754d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cpp/src/pipeline/pipeline_gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ void ComputeWorkerGPU::run() {

while (!done_) {
while (!paused_) {
// Timer t = new Timer(false);
Timer t = new Timer(false);
// t.start();
auto tup = ((PipelineGPU *)pipeline_)->device_loaded_batches_[gpu_id_]->blocking_pop();
// t.stop();
// std::cout<<"compute block: "<<t.getDuration()<<"\n";
// t.start();
t.start();
bool popped = std::get<0>(tup);
shared_ptr<Batch> batch = std::get<1>(tup);
if (!popped) {
Expand Down Expand Up @@ -315,8 +315,8 @@ void ComputeWorkerGPU::run() {
batch->clear();
}
}
// t.stop();
// std::cout<<"compute: "<<t.getDuration()<<"\n";
t.stop();
std::cout<<"compute: "<<t.getDuration()<<"\n";
}
nanosleep(&sleep_time_, NULL);
}
Expand Down

0 comments on commit d9754d6

Please sign in to comment.