projects
/
pocl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e90a78b
)
[PATCH] restore setting unroll-threshold on LLVM 9
author
Andreas Beckmann
<anbe@debian.org>
Wed, 27 Jan 2021 20:26:51 +0000
(21:26 +0100)
committer
Andreas Beckmann
<anbe@debian.org>
Fri, 15 Oct 2021 16:22:36 +0000
(17:22 +0100)
otherwise kernel/test_rotate hangs on avx512 capable cpus
(this partially reverts
459d0bb5241a62af3b5b607a65dcf5e9a34a01ee
)
Gbp-Pq: Name 2003-restore-setting-unroll-threshold-on-LLVM-9.patch
lib/CL/pocl_llvm_utils.cc
patch
|
blob
|
history
diff --git
a/lib/CL/pocl_llvm_utils.cc
b/lib/CL/pocl_llvm_utils.cc
index 2d4fc0da0c515d0119d99430ca227dcd37796187..2cc86ea385a93b354647f2ac8fbcc99d17d57f47 100644
(file)
--- a/
lib/CL/pocl_llvm_utils.cc
+++ b/
lib/CL/pocl_llvm_utils.cc
@@
-345,6
+345,11
@@
void InitializeLLVM() {
assert(O && "could not find LLVM option 'debug'");
O->addOccurrence(1, StringRef("debug"), StringRef("true"), false);
}
+#if LLVM_MAJOR == 9
+ O = opts["unroll-threshold"];
+ assert(O && "could not find LLVM option 'unroll-threshold'");
+ O->addOccurrence(1, StringRef("unroll-threshold"), StringRef("1"), false);
+#endif
}
}