[flang-commits] [flang] [flang][cuda] Allow to set the stack limit size (PR #124859)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Tue Jan 28 16:00:43 PST 2025
================
@@ -143,6 +143,17 @@ void ExecutionEnvironment::Configure(int ac, const char *av[],
}
}
+ if (auto *x{std::getenv("CUDA_STACKLIMIT")}) {
+ char *end;
+ auto n{std::strtol(x, &end, 10)};
+ if (n >= 0 && n < std::numeric_limits<int>::max() && *end == '\0') {
----------------
clementval wrote:
Right! I copy pasted that from above without really think about it. I'll update.
https://github.com/llvm/llvm-project/pull/124859
More information about the flang-commits
mailing list