File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -5148,10 +5148,10 @@ index ca80a7bbd..49138c92a 100644
5148
5148
int64_t algorithm_idx_;
5149
5149
diff --git a/xla/service/gpu/spir_compiler.cc b/xla/service/gpu/spir_compiler.cc
5150
5150
new file mode 100644
5151
- index 000000000..93711c700
5151
+ index 000000000..2938a70fe
5152
5152
--- /dev/null
5153
5153
+++ b/xla/service/gpu/spir_compiler.cc
5154
- @@ -0,0 +1,281 @@
5154
+ @@ -0,0 +1,290 @@
5155
5155
+ /* Copyright (c) 2023 Intel Corporation
5156
5156
+
5157
5157
+ Licensed under the Apache License, Version 2.0 (the "License");
@@ -5326,6 +5326,15 @@ index 000000000..93711c700
5326
5326
+ auto cuda_compute_capability = std::get<se::CudaComputeCapability>(
5327
5327
+ gpu_target_config.device_description.gpu_compute_capability());
5328
5328
+
5329
+ + // For frontend debugging.
5330
+ + FrontendAttributes frontend_attributes;
5331
+ + if (IsXeHPC(nullptr)) {
5332
+ + frontend_attributes.mutable_map()->emplace("IsXeHPC", "True");
5333
+ + }
5334
+ + if (HasXMX(nullptr)) {
5335
+ + frontend_attributes.mutable_map()->emplace("HasXMX", "True");
5336
+ + }
5337
+ + hlo_module->add_frontend_attributes(frontend_attributes);
5329
5338
+ bool use_mha = true;
5330
5339
+ TF_CHECK_OK(tsl::ReadBoolFromEnvVar("MHA", true, &use_mha));
5331
5340
+ if (use_mha && IsXetlaHardwareSupport()) {
You can’t perform that action at this time.
0 commit comments