Skip to content

Commit ccd1639

Browse files
authored
[SYCL] Fix mock plugin creation for different backends (#7502)
This PR is supposed to fix DescendentDevice unit test failure in post-commit.
1 parent dd5a191 commit ccd1639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/unittests/helpers/PiMock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class PiMock {
204204
// Copy the PiPlugin, thus untying our to-be mock platform from other
205205
// platforms within the context. Reset our platform to use the new plugin.
206206
NewPluginPtr = std::make_shared<detail::plugin>(
207-
OriginalPiPlugin.getPiPluginPtr(), OriginalPiPlugin.getBackend(),
207+
OriginalPiPlugin.getPiPluginPtr(), Backend,
208208
OriginalPiPlugin.getLibraryHandle());
209209
// Save a copy of the platform resource
210210
OrigFuncTable = OriginalPiPlugin.getPiPlugin().PiFunctionTable;

0 commit comments

Comments
 (0)