Skip to content

Commit 8d57030

Browse files
authored
update for new oneDNN (#2742)
1 parent 3c076b4 commit 8d57030

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

itex/workspace.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ def itex_workspace(path_prefix = "", tf_repo_name = ""):
179179

180180
new_git_repository(
181181
name = "onednn_gpu",
182-
# rls-v3.5
183-
commit = "2f39adb",
182+
# main
183+
commit = "2e7b691",
184184
remote = "https://github.com/oneapi-src/oneDNN.git",
185185
build_file = clean_dep("//third_party/onednn:onednn_gpu.BUILD"),
186186
verbose = True,

third_party/onednn/onednn_gpu.BUILD

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
exports_files(["LICENSE"])
2-
1+
load("@intel_extension_for_tensorflow//itex:itex.bzl", "cc_library")
32
load(
43
"@intel_extension_for_tensorflow//third_party:common.bzl",
54
"template_rule",
65
)
6+
load("@intel_extension_for_tensorflow//third_party/onednn:build_defs.bzl", "if_graph_compiler", "if_llga_debug")
77
load(
88
"@intel_extension_for_tensorflow//third_party/onednn:onednn.bzl",
99
"convert_cl_to_cpp",
1010
"convert_header_to_cpp",
1111
"gen_onednn_version",
1212
)
1313
load("@itex_local_config_sycl//sycl:build_defs.bzl", "if_sycl_build_is_configured")
14-
load("@intel_extension_for_tensorflow//itex:itex.bzl", "cc_library")
14+
15+
exports_files(["LICENSE"])
1516

1617
config_setting(
1718
name = "clang_linux_x86_64",
@@ -36,6 +37,7 @@ _CMAKE_COMMON_LIST = {
3637
"#cmakedefine DNNL_USE_RT_OBJECTS_IN_PRIMITIVE_CACHE": "#define DNNL_USE_RT_OBJECTS_IN_PRIMITIVE_CACHE",
3738
"#cmakedefine DNNL_ENABLE_STACK_CHECKER": "#undef DNNL_ENABLE_STACK_CHECKER",
3839
"#cmakedefine DNNL_EXPERIMENTAL": "#define DNNL_EXPERIMENTAL",
40+
"#cmakedefine DNNL_DISABLE_GPU_REF_KERNELS": "#undef DNNL_DISABLE_GPU_REF_KERNELS",
3941
"#cmakedefine01 BUILD_TRAINING": "#define BUILD_TRAINING 1",
4042
"#cmakedefine01 BUILD_INFERENCE": "#define BUILD_INFERENCE 0",
4143
"#cmakedefine01 BUILD_PRIMITIVE_ALL": "#define BUILD_PRIMITIVE_ALL 1",
@@ -120,6 +122,12 @@ gen_onednn_version(
120122
header_out = "include/oneapi/dnnl/dnnl_version.h",
121123
)
122124

125+
gen_onednn_version(
126+
name = "onednn_version_hash_generator",
127+
header_in = "include/oneapi/dnnl/dnnl_version_hash.h.in",
128+
header_out = "include/oneapi/dnnl/dnnl_version_hash.h",
129+
)
130+
123131
filegroup(
124132
name = "onednn_src",
125133
srcs = glob(
@@ -144,6 +152,7 @@ filegroup(
144152
":header_generator",
145153
":kernel_list_generator",
146154
":onednn_version_generator",
155+
":onednn_version_hash_generator",
147156
],
148157
)
149158

@@ -171,6 +180,9 @@ cc_library(
171180
"src/common",
172181
"src/cpu/gemm",
173182
"src/cpu/xbyak",
183+
"src/gpu/intel/jit/gemm/",
184+
"src/gpu/intel/jit/gemm/include/",
185+
"src/gpu/intel/jit/ngen/",
174186
"src/gpu/intel/ocl",
175187
"src/sycl",
176188
],
@@ -179,8 +191,6 @@ cc_library(
179191
deps = ["@itex_local_config_sycl//sycl:itex_gpu_headers"],
180192
)
181193

182-
load("@intel_extension_for_tensorflow//third_party/onednn:build_defs.bzl", "if_graph_compiler", "if_llga_debug")
183-
184194
_GRAPH_COPTS_GPU_LIST = [
185195
"-Wall",
186196
"-Wno-unknown-pragmas",

0 commit comments

Comments
 (0)