monolish  0.17.1
MONOlithic LInear equation Solvers for Highly-parallel architecture
Functions
Control GPU devices

send, recv, and others.. More...

Functions

template<typename T >
void monolish::util::device_free (T &x)
 free data of GPU More...
 
template<typename T , typename... Types>
void monolish::util::device_free (T &x, Types &...args)
 free data of GPU More...
 
int monolish::util::get_default_device ()
 get default device number More...
 
int monolish::util::get_num_devices ()
 get the number of devices More...
 
template<typename T >
void monolish::util::recv (T &x)
 recv. and free data from GPU More...
 
template<typename T , typename... Types>
void monolish::util::recv (T &x, Types &...args)
 recv. and free data to GPU More...
 
template<typename T >
void monolish::util::send (T &x)
 send data to GPU More...
 
template<typename T , typename... Types>
void monolish::util::send (T &x, Types &...args)
 send data to GPU More...
 
bool monolish::util::set_default_device (size_t device_num)
 set default device number More...
 

Detailed Description

send, recv, and others..

Function Documentation

◆ device_free() [1/2]

template<typename T >
void monolish::util::device_free ( T &  x)

free data of GPU

Definition at line 954 of file monolish_common.hpp.

Here is the caller graph for this function:

◆ device_free() [2/2]

template<typename T , typename... Types>
void monolish::util::device_free ( T &  x,
Types &...  args 
)

free data of GPU

Definition at line 961 of file monolish_common.hpp.

Here is the call graph for this function:

◆ get_default_device()

int monolish::util::get_default_device ( )

get default device number

Returns
the device number (If the device is not found or the GPU is not enabled, return value is negative)

◆ get_num_devices()

int monolish::util::get_num_devices ( )

get the number of devices

Returns
the number of devices (If the device is not found or the GPU is not enabled, return value is negative)

◆ recv() [1/2]

template<typename T >
void monolish::util::recv ( T &  x)

recv. and free data from GPU

Definition at line 937 of file monolish_common.hpp.

Here is the caller graph for this function:

◆ recv() [2/2]

template<typename T , typename... Types>
void monolish::util::recv ( T &  x,
Types &...  args 
)

recv. and free data to GPU

Definition at line 943 of file monolish_common.hpp.

Here is the call graph for this function:

◆ send() [1/2]

template<typename T >
void monolish::util::send ( T &  x)

send data to GPU

Definition at line 921 of file monolish_common.hpp.

Here is the caller graph for this function:

◆ send() [2/2]

template<typename T , typename... Types>
void monolish::util::send ( T &  x,
Types &...  args 
)

send data to GPU

Definition at line 927 of file monolish_common.hpp.

Here is the call graph for this function:

◆ set_default_device()

bool monolish::util::set_default_device ( size_t  device_num)

set default device number

Returns
if the GPU is not enabled, return false