Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sycl/source/detail/scheduler/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ ur_result_t ReleaseCommand::enqueueImp() {
UnmapEventImpl->setHandle(UREvent);
std::swap(MAllocaCmd->MIsActive, MAllocaCmd->MLinkedAllocaCmd->MIsActive);
EventImpls.clear();
EventImpls.push_back(UnmapEventImpl);
EventImpls.push_back(std::move(UnmapEventImpl));
}
ur_event_handle_t UREvent = nullptr;
if (SkipRelease)
Expand Down
5 changes: 3 additions & 2 deletions sycl/source/detail/split_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ inline std::vector<std::string> split_string(std::string_view str,
std::string LastSubStr(str.substr(Start, End - Start));
// In case str has a delimeter at the end, the substring will be empty, so
// we shouldn't add it to the final vector
if (!LastSubStr.empty())
Result.push_back(LastSubStr);
if (!LastSubStr.empty()) {
Result.push_back(std::move(LastSubStr));
}
Comment thread
uditagarwal97 marked this conversation as resolved.
}
return Result;
}
Expand Down
2 changes: 1 addition & 1 deletion sycl/source/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ void handler::ext_oneapi_barrier(const std::vector<event> &WaitList) {
if (EventImpl->isHost()) {
depends_on(EventImpl);
}
impl->MEventsWaitWithBarrier.push_back(EventImpl);
impl->MEventsWaitWithBarrier.push_back(std::move(EventImpl));
}
}

Expand Down
6 changes: 3 additions & 3 deletions sycl/source/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ kernel::ext_oneapi_get_info(queue Queue, const range<1> &WorkGroupSize,
template <typename Param>
typename detail::is_kernel_queue_specific_info_desc<Param>::return_type
kernel::ext_oneapi_get_info(queue Queue, const range<3> &WG) const {
return impl->ext_oneapi_get_info<Param>(Queue, WG);
return impl->ext_oneapi_get_info<Param>(std::move(Queue), WG);
}

template <typename Param>
Expand All @@ -147,13 +147,13 @@ kernel::ext_oneapi_get_info(queue Queue, const range<2> &WorkGroupSize,
template <typename Param>
typename detail::is_kernel_queue_specific_info_desc<Param>::return_type
kernel::ext_oneapi_get_info(queue Queue, const range<2> &WG) const {
return impl->ext_oneapi_get_info<Param>(Queue, WG);
return impl->ext_oneapi_get_info<Param>(std::move(Queue), WG);
}

template <typename Param>
typename detail::is_kernel_queue_specific_info_desc<Param>::return_type
kernel::ext_oneapi_get_info(queue Queue, const range<1> &WG) const {
return impl->ext_oneapi_get_info<Param>(Queue, WG);
return impl->ext_oneapi_get_info<Param>(std::move(Queue), WG);
}

template <typename Param>
Expand Down
Loading