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
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
22 ! Set PRIVATE by default to explicitly only export what is meant
23 ! to be exported by this MODULE.
26 public
:: threadIdx
, &