Skip to content

Commit bda51ee

Browse files
authored
[OneDnn] upgrade onednn to v3.5.1 (#411)
1 parent b8a6e42 commit bda51ee

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

third_party/onednn/gen_gpu_kernel_list.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,14 @@ def format(self, name, suffix, content):
206206
namespace dnnl {{
207207
namespace impl {{
208208
namespace gpu {{
209+
namespace intel {{
209210
namespace ocl {{
210211
const char* {}_{} =
211212
{};
212213
}}
213214
}}
214215
}}
216+
}}
215217
}}
216218
"""
217219

@@ -220,6 +222,7 @@ def format(self, name, suffix, content):
220222
namespace dnnl {{
221223
namespace impl {{
222224
namespace gpu {{
225+
namespace intel {{
223226
namespace ocl {{
224227
const char* {}_kernel[] = {{
225228
{}
@@ -229,6 +232,7 @@ def format(self, name, suffix, content):
229232
}}
230233
}}
231234
}}
235+
}}
232236
"""
233237
return header.format(name, content)
234238

@@ -262,8 +266,8 @@ def __init__(self, in_file, out_dir):
262266
If possible, it should passed as an arguments, but for covenience, we do this
263267
assumption directly.
264268
"""
265-
OCL_IMPL_DIR = "src/gpu/ocl"
266-
HEADER_ROOT_DIR = "src/gpu"
269+
OCL_IMPL_DIR = "src/gpu/intel/ocl"
270+
HEADER_ROOT_DIR = "src/gpu/intel"
267271
IN_FILE = "ocl_kernel_list.cpp.in"
268272

269273
in_file = os.path.expanduser(in_file)

third_party/onednn/onednn_gpu.BUILD

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ template_rule(
8787

8888
convert_cl_to_cpp(
8989
name = "kernel_list_generator",
90-
src = "src/gpu/ocl/ocl_kernel_list.cpp.in",
91-
cl_list = glob(["src/gpu/ocl/**/*.cl"]),
90+
src = "src/gpu/intel/ocl/ocl_kernel_list.cpp.in",
91+
cl_list = glob(["src/gpu/intel/ocl/**/*.cl"]),
9292
)
9393

9494
convert_header_to_cpp(
9595
name = "header_generator",
96-
src = "src/gpu/ocl/ocl_kernel_list.cpp.in",
97-
header_list = glob(["src/gpu/**/*.h"]),
96+
src = "src/gpu/intel/ocl/ocl_kernel_list.cpp.in",
97+
header_list = glob(["src/gpu/intel/**/*.h"]),
9898
)
9999

100100
gen_onednn_version(
@@ -116,7 +116,7 @@ filegroup(
116116
"src/cpu/**",
117117
"src/gpu/nvidia/*",
118118
"src/gpu/amd/*",
119-
"src/gpu/jit/v2/conv/planner/*",
119+
"src/gpu/intel/jit/v2/conv/planner/*",
120120
"src/gpu/sycl/ref*",
121121
"src/graph/**",
122122
],
@@ -156,7 +156,7 @@ cc_library(
156156
"include/oneapi/dnnl",
157157
"src",
158158
"src/common",
159-
"src/ocl",
159+
"src/intel/ocl",
160160
"src/sycl",
161161
],
162162
#nocopts = "-fno-exceptions",

xla/workspace.bzl

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

77
new_git_repository(
88
name = "onednn_gpu",
9-
# rls-v3.4
10-
commit = "ecd7fb6d5a0df6503d1691c1754a684b9c769c16",
9+
# v3.5.1
10+
commit = "2340f5ad9501a136ca2ea1a0c6e1328b55c87b02",
1111
remote = "https://github.com/oneapi-src/oneDNN.git",
1212
build_file = "//third_party/onednn:onednn_gpu.BUILD",
1313
verbose = True,

0 commit comments

Comments
 (0)