Skip to content

Commit

Permalink
Rebase on branch 'sycl'
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Sommer <lukas.sommer@codeplay.com>
  • Loading branch information
sommerlukas committed May 4, 2023
1 parent a7e1369 commit 88b4ada
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sycl/source/detail/jit_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ translateBinaryImageFormat(pi::PiDeviceBinaryType Type) {
}

::jit_compiler::BinaryFormat getTargetFormat(QueueImplPtr &Queue) {
auto Backend = Queue->getDeviceImplPtr()->getPlugin().getBackend();
auto Backend = Queue->getDeviceImplPtr()->getBackend();
switch (Backend) {
case backend::ext_oneapi_level_zero:
case backend::opencl:
Expand All @@ -58,8 +58,8 @@ std::pair<const RTDeviceBinaryImage *, RT::PiProgram>
retrieveKernelBinary(QueueImplPtr &Queue, CGExecKernel *KernelCG) {
auto KernelName = KernelCG->getKernelName();

bool isNvidia = Queue->getDeviceImplPtr()->getPlugin().getBackend() ==
backend::ext_oneapi_cuda;
bool isNvidia =
Queue->getDeviceImplPtr()->getBackend() == backend::ext_oneapi_cuda;
if (isNvidia) {
auto KernelID = ProgramManager::getInstance().getSYCLKernelID(KernelName);
std::vector<kernel_id> KernelIds{KernelID};
Expand Down

0 comments on commit 88b4ada

Please sign in to comment.