[flang-commits] [flang] [flang][cuda] Allow to set the stack limit size (PR #124859)
Michael Kruse via flang-commits
flang-commits at lists.llvm.org
Wed Jan 29 08:54:10 PST 2025
================
@@ -61,6 +65,15 @@ void fir::runtime::genMain(
args.push_back(env);
builder.create<fir::CallOp>(loc, startFn, args);
+
+#ifdef FLANG_CUDA_SUPPORT
+ if (initCuda) {
+ auto initFn = builder.createFunction(
----------------
Meinersbur wrote:
What should happen in the following cases?
* Flang is compiled with `FLANG_CUDA_SUPPORT`, compiles a CUDA program, which is then executed in an environment without CUFRuntime.
* Flang is compiled without `FLANG_CUDA_SUPPORT`, compiles a CUDA program which is then executed in an environment without CUFRuntime.
* Flang is compiled without `FLANG_CUDA_SUPPORT`, compiles a CUDA program which is then executed in an environment that supports CUDA.
https://github.com/llvm/llvm-project/pull/124859
More information about the flang-commits
mailing list