Skip to content

Commit

Permalink
Set target triple to SPIR-V 1.3 (#1195)
Browse files Browse the repository at this point in the history
KhronosGroup/SPIRV-LLVM-Translator@5e0f14b
uses SPIR-V 1.4 features that are not backported to the SPIRV translator
used by IGC.

Signed-off-by: Whitney Tsang <whitney.tsang@intel.com>
  • Loading branch information
whitneywhtsang authored May 28, 2024
1 parent da631c7 commit 6dbcb76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Target/SPIRV/spirv-llvm-translator.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9e60105170110e0fd01f073954763af399d1c596
5e0f14b5a09d96189dacbbe4afb5dd41404a4b7f
2 changes: 1 addition & 1 deletion python/src/llvm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ void init_triton_llvm(py::module &&m) {
ret::take_ownership);

m.def("set_spv_target_triple", [](llvm::Module *mod) {
std::string triple = "spir64-unknown-unknown";
std::string triple = "spirv64v1.3-unknown-unknown";
std::string layout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:"
"256-v256:256-v512:512-v1024:1024-n8:16:32:64";
mod->setTargetTriple(triple);
Expand Down

0 comments on commit 6dbcb76

Please sign in to comment.