[all-commits] [llvm/llvm-project] f32f6d: [flang][cuda] Implicitly load cudadevice module in...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Fri May 10 13:42:14 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f32f6d199ac36e0c45433a648691f5165893deec
      https://github.com/llvm/llvm-project/commit/f32f6d199ac36e0c45433a648691f5165893deec
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2024-05-10 (Fri, 10 May 2024)

  Changed paths:
    M flang/include/flang/Semantics/semantics.h
    M flang/lib/Semantics/check-cuda.cpp
    M flang/lib/Semantics/resolve-names.cpp
    M flang/lib/Semantics/semantics.cpp
    A flang/module/__cuda_device_builtins.f90
    A flang/module/cudadevice.f90
    A flang/test/Semantics/cuf-device-procedures01.cuf
    A flang/test/Semantics/cuf-device-procedures02.cuf
    M flang/tools/f18/CMakeLists.txt

  Log Message:
  -----------
  [flang][cuda] Implicitly load cudadevice module in device/global subprogram (#91668)

Some functions and subroutines are available in device context
(device/global). These functions have interfaces declared in the
`cudadevice` module.

This patch adds interfaces as `__cuda_device_builtins_<fctname>` in a
builtin module and they are USE'd rename in the `cudadevice` module. The
module is implicitly used in device/global subprograms.

The builtin module only contains procedures from section 3.6.4 for now.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list