diff --git a/sycl/source/detail/program_impl.cpp b/sycl/source/detail/program_impl.cpp index ca5628fb1a8d6..ed78ecb440ef7 100644 --- a/sycl/source/detail/program_impl.cpp +++ b/sycl/source/detail/program_impl.cpp @@ -259,7 +259,7 @@ void program_impl::link(std::string LinkOptions) { } bool program_impl::has_kernel(std::string KernelName, - bool IsCreatedFromSource) const { + bool /*IsCreatedFromSource*/) const { throw_if_state_is(program_state::none); std::vector Devices(get_pi_devices()); diff --git a/sycl/source/detail/sycl_mem_obj_t.cpp b/sycl/source/detail/sycl_mem_obj_t.cpp index 68207bec67d53..009f910be440c 100644 --- a/sycl/source/detail/sycl_mem_obj_t.cpp +++ b/sycl/source/detail/sycl_mem_obj_t.cpp @@ -173,7 +173,7 @@ size_t SYCLMemObjT::getBufSizeForContext(const ContextImplPtr &Context, bool SYCLMemObjT::isInterop() const { return MOpenCLInterop; } -void SYCLMemObjT::determineHostPtr(const ContextImplPtr &Context, +void SYCLMemObjT::determineHostPtr(const ContextImplPtr & /*Context*/, bool InitFromUserData, void *&HostPtr, bool &HostPtrReadOnly) { // The data for the allocation can be provided via either the user pointer diff --git a/sycl/unittests/scheduler/StreamInitDependencyOnHost.cpp b/sycl/unittests/scheduler/StreamInitDependencyOnHost.cpp index 91f2ff53cdc2f..af11192c31851 100644 --- a/sycl/unittests/scheduler/StreamInitDependencyOnHost.cpp +++ b/sycl/unittests/scheduler/StreamInitDependencyOnHost.cpp @@ -47,31 +47,3 @@ class MockHandlerStreamInit : public MockHandler { return CommandGroup; } }; - -using CmdTypeTy = sycl::detail::Command::CommandType; - -// Function recursively checks that initial command has dependency on chain of -// other commands that should have type DepCmdsTypes[Depth] (Depth is a distance -// - 1 in a command dependencies tree from initial command to a currently -// checked one) and requirement on memory object of stream's flush buffer. -static bool ValidateDepCommandsTree(const detail::Command *Cmd, - const std::vector &DepCmdsTypes, - const detail::SYCLMemObjI *MemObj, - size_t Depth = 0) { - if (!Cmd || Depth >= DepCmdsTypes.size()) - throw sycl::runtime_error("Command parameters are invalid", - PI_ERROR_INVALID_VALUE); - - for (const detail::DepDesc &Dep : Cmd->MDeps) { - if (Dep.MDepCommand && - (Dep.MDepCommand->getType() == DepCmdsTypes[Depth]) && - Dep.MDepRequirement && (Dep.MDepRequirement->MSYCLMemObj == MemObj) && - ((Depth == DepCmdsTypes.size() - 1) || - ValidateDepCommandsTree(Dep.MDepCommand, DepCmdsTypes, MemObj, - Depth + 1))) { - return true; - } - } - - return false; -}