60 integer,
parameter,
public :: &
69 integer,
parameter,
public :: &
80 integer,
parameter,
public :: &
89 integer,
parameter,
public :: &
100 subroutine cuda_init(context, device, stream, device_number, rank)
104 type(c_ptr),
intent(inout) :: context
105 type(c_ptr),
intent(inout) :: device
106 type(c_ptr),
intent(inout) :: stream
107 integer,
intent(inout) :: device_number
108 integer,
intent(out) :: rank
113 subroutine cuda_end(context, device)
117 type(c_ptr),
intent(inout) :: context
118 type(c_ptr),
intent(inout) :: device
127 type(c_ptr),
intent(inout) :: module_map
136 type(c_ptr),
intent(inout) :: module_map
145 type(c_ptr),
intent(inout) :: module_map
146 type(c_ptr),
intent(inout) :: modul
147 type(c_ptr),
intent(inout) :: device
148 character(len=*),
intent(in) :: fname
149 character(len=*),
intent(in) :: flags
158 type(c_ptr),
intent(inout) :: kernel
159 type(c_ptr),
intent(inout) :: modul
160 character(len=*),
intent(in) :: kernel_name
168 type(c_ptr),
intent(inout) :: modul
177 type(c_ptr),
intent(inout) :: kernel
186 type(c_ptr),
intent(inout) :: device
187 integer,
intent(out) :: max_threads
196 type(c_ptr),
intent(inout) :: device
197 integer,
intent(out) :: max_threads
206 type(c_ptr),
intent(inout) :: device
207 integer,
intent(out) :: max_dim
216 type(c_ptr),
intent(inout) :: device
217 integer,
intent(out) :: max_dim
226 type(c_ptr),
intent(inout) :: device
227 integer,
intent(out) :: max_dim
236 type(c_ptr),
intent(inout) :: device
237 integer,
intent(out) :: max_dim
246 type(c_ptr),
intent(inout) :: device
247 integer,
intent(out) :: max_dim
256 type(c_ptr),
intent(inout) :: device
257 integer,
intent(out) :: max_dim
265 use,
intrinsic :: iso_fortran_env
268 type(c_ptr),
intent(inout) :: device
269 integer(int64),
intent(out) :: total_memory
276 use,
intrinsic :: iso_fortran_env
279 type(c_ptr),
intent(inout) :: device
280 integer(int64),
intent(out) :: shared_memory
287 use,
intrinsic :: iso_fortran_env
290 type(c_ptr),
intent(inout) :: cuda_ptr
291 integer(int64),
intent(in) :: size
300 type(c_ptr),
intent(inout) :: cuda_ptr
309 type(c_ptr),
intent(inout) :: arg_array
318 type(c_ptr),
intent(inout) :: arg_array
327 type(c_ptr),
intent(inout) :: arg_array
328 type(c_ptr),
intent(in) :: cuda_ptr
329 integer,
intent(in) :: arg_index
348 use,
intrinsic :: iso_fortran_env
351 type(c_ptr),
intent(inout) :: kernel
352 integer(int64),
intent(in) :: griddim
353 integer(int64),
intent(in) :: blockdim
354 integer(int64),
intent(in) :: shared_mem
355 type(c_ptr),
intent(inout) :: arg_array
364 type(c_ptr),
intent(inout) :: device
365 character(len=*),
intent(inout) :: name
374 type(c_ptr),
intent(inout) :: device
375 integer,
intent(out) :: major
376 integer,
intent(out) :: minor
385 integer,
intent(out) :: version
394 type(c_ptr),
intent(inout) :: device
395 integer,
intent(out) :: warpsize
402 type(c_ptr),
intent(in) :: cuda_ptr
403 type(c_ptr),
intent(out) :: cuda_deref_ptr
410 type(c_ptr),
intent(inout) :: stream
411 integer,
intent(in) :: stream_number
418 integer,
intent(inout) :: stream_number
425 use,
intrinsic :: iso_fortran_env
428 type(c_ptr),
intent(inout) :: cuda_ptr
429 type(c_ptr),
intent(in) :: data
430 integer(int64),
intent(in) :: size
431 integer(int64),
intent(in) :: offset
438 use,
intrinsic :: iso_fortran_env
441 type(c_ptr),
intent(inout) :: cuda_ptr
442 type(c_ptr),
intent(inout) :: data
443 integer(int64),
intent(in) :: size
444 integer(int64),
intent(in) :: offset
451 type(c_ptr),
intent(in) :: buffer
452 integer(8),
intent(in) :: offset
453 type(c_ptr),
intent(out) :: buffer_offset
460 type(c_ptr),
intent(in) :: buffer
integer, parameter, public cublas_side_left
integer, parameter, public cublas_fill_mode_upper
integer, parameter, public cublas_op_n
integer, parameter, public cublas_op_c
integer, parameter, public cublas_diag_non_unit
integer, parameter, public cublas_op_t
integer, parameter, public cublas_fill_mode_lower
integer, parameter, public cublas_side_right
integer, parameter, public cublas_diag_unit