[flang-commits] [flang] [flang][cuda] Add entry point to launch cuda fortran kernel (PR #113490)
Renaud Kauffmann via flang-commits
flang-commits at lists.llvm.org
Wed Oct 23 13:07:51 PDT 2024
================
@@ -0,0 +1,31 @@
+//===-- include/flang/Runtime/CUDA/kernel.h ---------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef FORTRAN_RUNTIME_CUDA_KERNEL_H_
+#define FORTRAN_RUNTIME_CUDA_KERNEL_H_
+
+#include "flang/Runtime/entry-names.h"
+#include <cstddef>
+#include <stdint.h>
+
+namespace Fortran::runtime::cuda {
----------------
Renaud-K wrote:
If they are all `extern "C"` with their own prefix, I don't think they need to be a namespace.
https://github.com/llvm/llvm-project/pull/113490
More information about the flang-commits
mailing list