Skip to content

Commit

Permalink
restore
Browse files Browse the repository at this point in the history
  • Loading branch information
walkalone20 committed Apr 23, 2024
1 parent 375c415 commit 9844a3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddle/phi/api/profiler/device_tracer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ void DisableActivity() {
void CUPTIAPI bufferRequested(uint8_t **buffer,
size_t *size,
size_t *maxNumRecords) {
std::vector<uint8_t> buf(kBufSize + kAlignSize);
uint8_t *buf = reinterpret_cast<uint8_t *>(malloc(kBufSize + kAlignSize));
*size = kBufSize;
*buffer = ALIGN_BUFFER(buf.data(), kAlignSize);
*buffer = ALIGN_BUFFER(buf, kAlignSize);
*maxNumRecords = 0;
}

Expand Down

0 comments on commit 9844a3b

Please sign in to comment.