Skip to content

Commit

Permalink
Merge branch 'amdgpu_profiler' of github.com:Galeselee/taichi into am…
Browse files Browse the repository at this point in the history
…dgpu_profiler
  • Loading branch information
galeselee committed Feb 15, 2023
2 parents 77b1704 + 04656ba commit 8b56bc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions taichi/rhi/cuda/cuda_profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,11 @@ void EventToolkit::update_record(
std::vector<KernelProfileTracedRecord> &traced_records) {
uint32_t events_num = event_records_.size();
uint32_t records_num = traced_records.size();
TI_ERROR_IF(records_size_after_sync + events_num != records_num,
"KernelProfilerCUDA::EventToolkitCUDA: event_records_.size({}) != "
"traced_records_.size({})",
records_size_after_sync + events_num, records_num);
TI_ERROR_IF(
records_size_after_sync + events_num != records_num,
"KernelProfilerCUDA::EventToolkitCUDA: event_records_.size({}) != "
"traced_records_.size({})",
records_size_after_sync + events_num, records_num);

uint32_t idx = 0;
for (auto &record : event_records_) {
Expand Down
2 changes: 1 addition & 1 deletion taichi/rhi/cuda/cuda_profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ class EventToolkit {
}
};

} // namespace taichi::lang
} // namespace taichi::lang

0 comments on commit 8b56bc0

Please sign in to comment.