[Support] Remove unused includes (NFC) (#116752)
[llvm-project.git] / flang / module / __cuda_builtins.f90
blob63a661e565e41c65698b036c039ea8bf661db2c4
1 !===-- module/__cuda_builtins.f90 ------------------------------------------===!
3 ! Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 ! See https://llvm.org/LICENSE.txt for license information.
5 ! SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 !===------------------------------------------------------------------------===!
9 ! These CUDA predefined variables are automatically available in device
10 ! subprograms.
12 module __CUDA_builtins
13 use __fortran_builtins, only: &
14 threadIdx => __builtin_threadIdx, &
15 blockDim => __builtin_blockDim, &
16 blockIdx => __builtin_blockIdx, &
17 gridDim => __builtin_gridDim, &
18 warpsize => __builtin_warpsize
20 implicit none
22 ! Set PRIVATE by default to explicitly only export what is meant
23 ! to be exported by this MODULE.
24 private
26 public :: threadIdx, &
27 blockDim, &
28 blockIdx, &
29 gridDim, &
30 warpsize
31 end module