[flang-commits] [flang] [flang][cuda] Extends matching distance computation (PR #91810)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Fri May 10 14:49:53 PDT 2024
================
@@ -2501,8 +2501,13 @@ static constexpr int cudaInfMatchingValue{std::numeric_limits<int>::max()};
// Compute the matching distance as described in section 3.2.3 of the CUDA
// Fortran references.
-static int GetMatchingDistance(const characteristics::DummyArgument &dummy,
+static int GetMatchingDistance(const common::LanguageFeatureControl &features,
+ const characteristics::DummyArgument &dummy,
const std::optional<ActualArgument> &actual) {
+ bool isGpuManaged = features.IsEnabled(common::LanguageFeature::GpuManaged);
+ bool isGpuUnified = features.IsEnabled(common::LanguageFeature::GpuUnified);
+ // assert((isGpuManaged != isGpuUnified) && "expect only one enabled.");
----------------
clementval wrote:
Updated
https://github.com/llvm/llvm-project/pull/91810
More information about the flang-commits
mailing list