Skip to content

Commit e330c0d

Browse files
committed
[NATIVECPU] renamed futures/tasksinfo function for consistency
1 parent 4251ba8 commit e330c0d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

unified-runtime/source/adapters/native_cpu/enqueue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunch(
222222
});
223223
rangeStart = rangeEnd;
224224
}
225-
event->set_futures(Tasks.getTaskInfo());
225+
event->set_tasksinfo(Tasks.getMovedTaskInfo());
226226

227227
if (phEvent) {
228228
*phEvent = event;
@@ -265,7 +265,7 @@ withTimingEvent(ur_command_t command_type, ur_queue_handle_t hQueue,
265265
InEvents.wait();
266266
f();
267267
});
268-
event->set_futures(Tasks.getTaskInfo());
268+
event->set_tasksinfo(Tasks.getMovedTaskInfo());
269269
event->set_callback(
270270
[event, InEvents = InEvents.getUniquePtr()]() { event->tick_end(); });
271271
return UR_RESULT_SUCCESS;

unified-runtime/source/adapters/native_cpu/event.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct ur_event_handle_t_ : RefCounted {
4343

4444
ur_command_t getCommandType() const { return command_type; }
4545

46-
void set_futures(native_cpu::tasksinfo_t &&fs) {
46+
void set_tasksinfo(native_cpu::tasksinfo_t &&fs) {
4747
std::lock_guard<std::mutex> lock(mutex);
4848
futures = std::move(fs);
4949
}

unified-runtime/source/adapters/native_cpu/threadpool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ template <class TP, class TaskInfo> struct Scheduler_base {
226226
TP &ref;
227227
TaskInfo ti;
228228
Scheduler_base(TP &ref_) : ref(ref_), ti(ref_) {}
229-
TaskInfo getTaskInfo() { return std::move(ti); }
229+
TaskInfo getMovedTaskInfo() { return std::move(ti); }
230230
static constexpr bool CanWaitInThread() { return true; }
231231
};
232232

0 commit comments

Comments
 (0)