Skip to content

Commit bdeb3ce

Browse files
authored
[SYCL] Fix postcommit again (#14385)
Unused param/func warnings Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 83a5cb6 commit bdeb3ce

File tree

3 files changed

+2
-30
lines changed

3 files changed

+2
-30
lines changed

sycl/source/detail/program_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void program_impl::link(std::string LinkOptions) {
259259
}
260260

261261
bool program_impl::has_kernel(std::string KernelName,
262-
bool IsCreatedFromSource) const {
262+
bool /*IsCreatedFromSource*/) const {
263263
throw_if_state_is(program_state::none);
264264

265265
std::vector<sycl::detail::pi::PiDevice> Devices(get_pi_devices());

sycl/source/detail/sycl_mem_obj_t.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ size_t SYCLMemObjT::getBufSizeForContext(const ContextImplPtr &Context,
173173

174174
bool SYCLMemObjT::isInterop() const { return MOpenCLInterop; }
175175

176-
void SYCLMemObjT::determineHostPtr(const ContextImplPtr &Context,
176+
void SYCLMemObjT::determineHostPtr(const ContextImplPtr & /*Context*/,
177177
bool InitFromUserData, void *&HostPtr,
178178
bool &HostPtrReadOnly) {
179179
// The data for the allocation can be provided via either the user pointer

sycl/unittests/scheduler/StreamInitDependencyOnHost.cpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,3 @@ class MockHandlerStreamInit : public MockHandler {
4747
return CommandGroup;
4848
}
4949
};
50-
51-
using CmdTypeTy = sycl::detail::Command::CommandType;
52-
53-
// Function recursively checks that initial command has dependency on chain of
54-
// other commands that should have type DepCmdsTypes[Depth] (Depth is a distance
55-
// - 1 in a command dependencies tree from initial command to a currently
56-
// checked one) and requirement on memory object of stream's flush buffer.
57-
static bool ValidateDepCommandsTree(const detail::Command *Cmd,
58-
const std::vector<CmdTypeTy> &DepCmdsTypes,
59-
const detail::SYCLMemObjI *MemObj,
60-
size_t Depth = 0) {
61-
if (!Cmd || Depth >= DepCmdsTypes.size())
62-
throw sycl::runtime_error("Command parameters are invalid",
63-
PI_ERROR_INVALID_VALUE);
64-
65-
for (const detail::DepDesc &Dep : Cmd->MDeps) {
66-
if (Dep.MDepCommand &&
67-
(Dep.MDepCommand->getType() == DepCmdsTypes[Depth]) &&
68-
Dep.MDepRequirement && (Dep.MDepRequirement->MSYCLMemObj == MemObj) &&
69-
((Depth == DepCmdsTypes.size() - 1) ||
70-
ValidateDepCommandsTree(Dep.MDepCommand, DepCmdsTypes, MemObj,
71-
Depth + 1))) {
72-
return true;
73-
}
74-
}
75-
76-
return false;
77-
}

0 commit comments

Comments
 (0)