Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
cuda_intf Module Reference

Fortran CUDA interface.

Data Types

interface  cudamalloc
interface  cudafree
interface  cudamemcpy
interface  cudamemcpyasync
interface  cudamemsetasync
interface  cudadevicesynchronize
interface  cudadevicereset
interface  cuda_buffer_free_all
interface  cudagetdeviceproperties
interface  cudastreamcreate
interface  cudastreamcreatewithflags
interface  cudastreamcreatewithpriority
interface  cudastreamdestroy
interface  cudastreamsynchronize
interface  cudastreamwaitevent
interface  cudadevicegetstreampriorityrange
interface  cudaprofilerstart
interface  cudaprofilerstop
interface  cudaeventcreate
interface  cudaeventdestroy
interface  cudaeventcreatewithflags
interface  cudaeventrecord
interface  cudaeventsynchronize
interface  cudagetdevicecount
interface  cuda_device_mp_count
 Number of streaming multiprocessors of the current device (0 if unknown), see device/cuda/props.cu. More...
interface  cuda_device_total_mem
 Total memory of the current device in bytes (0 if unknown), see device/cuda/props.cu. More...
interface  cudagetdevice
interface  cudasetdevice

Enumerations

enum  { cudasuccess = 0 , cudaerrorinvalidvalue = 1 , cudaerrormemoryallocation = 2 , cudaerrorinitializationerror = 3 }
 Enum cudaError. More...
enum  {
  cudamemcpyhosttohost = 0 , cudamemcpyhosttodevice = 1 , cudamemcpydevicetohost = 2 , cudamemcpydevicetodevice = 3 ,
  cudamemcpydefault = 4
}
 Enum cudaMemcpyKind. More...

Functions/Subroutines

subroutine cuda_init (glb_cmd_queue, aux_cmd_queue, strm_high_prio, strm_low_prio)
subroutine cuda_finalize (glb_cmd_queue, aux_cmd_queue)
subroutine cuda_device_name (name)
integer function cuda_device_count ()
 Return the number of avaialble CUDA devices.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
cudasuccess 
cudaerrorinvalidvalue 
cudaerrormemoryallocation 
cudaerrorinitializationerror 

Definition at line 43 of file cuda_intf.F90.

◆ anonymous enum

anonymous enum
Enumerator
cudamemcpyhosttohost 
cudamemcpyhosttodevice 
cudamemcpydevicetohost 
cudamemcpydevicetodevice 
cudamemcpydefault 

Definition at line 51 of file cuda_intf.F90.

Function/Subroutine Documentation

◆ cuda_device_count()

integer function cuda_intf::cuda_device_count

Definition at line 365 of file cuda_intf.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cuda_device_name()

subroutine cuda_intf::cuda_device_name ( character(len=*), intent(inout) name)

Definition at line 340 of file cuda_intf.F90.

Here is the caller graph for this function:

◆ cuda_finalize()

subroutine cuda_intf::cuda_finalize ( type(c_ptr), intent(inout) glb_cmd_queue,
type(c_ptr), intent(inout) aux_cmd_queue )

Definition at line 311 of file cuda_intf.F90.

Here is the caller graph for this function:

◆ cuda_init()

subroutine cuda_intf::cuda_init ( type(c_ptr), intent(inout) glb_cmd_queue,
type(c_ptr), intent(inout) aux_cmd_queue,
integer, intent(inout) strm_high_prio,
integer, intent(inout) strm_low_prio )

Definition at line 267 of file cuda_intf.F90.

Here is the caller graph for this function: