Skip to content

Commit d01810c

Browse files
PietroGhgomarahmed1111
authored andcommitted
Update __SYCL_DEVICE_BINARY_TARGET_NATIVE_CPU
1 parent fe5edca commit d01810c

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

llvm/lib/SYCLNativeCPUUtils/PipelineSYCLNativeCPU.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
#include "llvm/SYCLLowerIR/ConvertToMuxBuiltinsSYCLNativeCPU.h"
1515
#include "llvm/SYCLLowerIR/PrepareSYCLNativeCPU.h"
1616
#include "llvm/SYCLLowerIR/RenameKernelSYCLNativeCPU.h"
17-
#include "llvm/SYCLLowerIR/UtilsSYCLNativeCPU.h"
18-
#include "llvm/Support/CommandLine.h"
1917
#include "llvm/SYCLLowerIR/SpecConstants.h"
2018
#include "llvm/SYCLLowerIR/UtilsSYCLNativeCPU.h"
19+
#include "llvm/Support/CommandLine.h"
2120

2221
#ifdef NATIVECPU_USE_OCK
2322
#include "compiler/utils/builtin_info.h"

llvm/lib/SYCLNativeCPUUtils/PrepareSYCLNativeCPU.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,5 +473,6 @@ PreservedAnalyses PrepareSYCLNativeCPUPass::run(Module &M,
473473
ModuleChanged = true;
474474
}
475475
}
476+
476477
return ModuleChanged ? PreservedAnalyses::none() : PreservedAnalyses::all();
477478
}

sycl/cmake/modules/FetchUnifiedRuntime.cmake

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ if(SYCL_UR_USE_FETCH_CONTENT)
117117
endfunction()
118118

119119
set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime.git")
120-
# commit f31160dea6d142014f441bc4ca5e58e48827490e
121-
# Merge: 2bbe9526 64068799
122-
# Author: Piotr Balcer <piotr.balcer@intel.com>
123-
# Date: Thu Sep 12 14:19:48 2024 +0200
124-
# Merge pull request #2083 from kswiecicki/xpti-init-fix
125-
# Fix XPTI initialization bug
126-
set(UNIFIED_RUNTIME_TAG f31160dea6d142014f441bc4ca5e58e48827490e)
120+
# commit fa9ebe7bd3d9bd11dd5ea8a59eff12f5746411d3
121+
# Merge: 92638b2a 9eb1c74f
122+
# Author: Omar Ahmed <omar.ahmed@codeplay.com>
123+
# Date: Fri Sep 13 14:44:27 2024 +0100
124+
# Merge pull request #1821 from PietroGhg/pietro/native_cpu_specconstants
125+
# [NATIVECPU] Initial support for spec constants on Native CPU
126+
set(UNIFIED_RUNTIME_TAG fa9ebe7bd3d9bd11dd5ea8a59eff12f5746411d3)
127127

128128
set(UMF_BUILD_EXAMPLES OFF CACHE INTERNAL "EXAMPLES")
129129
# Due to the use of dependentloadflag and no installer for UMF and hwloc we need
@@ -156,8 +156,8 @@ if(SYCL_UR_USE_FETCH_CONTENT)
156156
)
157157

158158
fetch_adapter_source(native_cpu
159-
"https://github.com/PietroGhg/unified-runtime.git"
160-
pietro/native_cpu_specconstants
159+
${UNIFIED_RUNTIME_REPO}
160+
${UNIFIED_RUNTIME_TAG}
161161
)
162162

163163
if(SYCL_UR_OVERRIDE_FETCH_CONTENT_REPO)

sycl/source/kernel_bundle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ bool is_compatible(const std::vector<kernel_id> &KernelIDs, const device &Dev) {
329329
return BE == sycl::backend::ext_oneapi_cuda;
330330
} else if (strcmp(Target, __SYCL_DEVICE_BINARY_TARGET_AMDGCN) == 0) {
331331
return BE == sycl::backend::ext_oneapi_hip;
332-
} else if (strcmp(Target, __SYCL_PI_DEVICE_BINARY_TARGET_NATIVE_CPU) == 0) {
332+
} else if (strcmp(Target, __SYCL_DEVICE_BINARY_TARGET_NATIVE_CPU) == 0) {
333333
return BE == sycl::backend::ext_oneapi_native_cpu;
334334
}
335335

0 commit comments

Comments
 (0)