async_cuda¶
The contents of this module can be included with the header
hpx/modules/async_cuda.hpp
. These headers may be used by user-code but are not
guaranteed stable (neither header location nor contents). You are using these at
your own risk. If you wish to use non-public functionality from a module we
strongly suggest only including the module header hpx/modules/async_cuda.hpp
, not
the particular header in which the functionality you would like to use is
defined. See Public API for a list of names that are part of the public
HPX API.
Header hpx/async_cuda/cublas_executor.hpp
¶
-
namespace
hpx
-
namespace
cuda
¶ -
namespace
experimental
¶ Functions
-
cublasStatus_t
check_cublas_error
(cublasStatus_t err)¶
-
struct
cublas_exception
: public exception¶ - #include <cublas_executor.hpp>
Public Functions
-
cublasStatus_t
get_cublas_errorcode
()¶
Protected Attributes
-
cublasStatus_t
err_
¶
-
cublasStatus_t
-
struct
cublas_executor
: public hpx::cuda::experimental::cuda_executor¶ - #include <cublas_executor.hpp>
Public Functions
-
cublas_executor
(std::size_t device, cublasPointerMode_t pointer_mode = CUBLAS_POINTER_MODE_HOST, bool event_mode = false)¶
-
~cublas_executor
()¶
Protected Functions
-
template<typename
R
, typename ...Params
, typename ...Args
>
std::enable_if<std::is_same<cublasStatus_t, R>::value, R>::typeapply
(R (*cublas_function)(Params...), Args&&... args, )¶
-
template<typename
R
, typename ...Params
, typename ...Args
>
std::enable_if<std::is_same<cudaError_t, R>::value, void>::typeapply
(R (*cuda_function)(Params...), Args&&... args, )¶
-
template<typename
R
, typename ...Params
, typename ...Args
>
hpx::future<typename std::enable_if<std::is_same<cublasStatus_t, R>::value, void>::type>async
(R (*cublas_function)(Params...), Args&&... args, )¶
-
template<typename
R
, typename ...Params
, typename ...Args
>
hpx::future<typename std::enable_if<std::is_same<cudaError_t, R>::value, void>::type>async
(R (*cuda_function)(Params...), Args&&... args, )¶
-
cublasHandle_t
get_handle
()¶
-
-
cublasStatus_t
-
namespace
-
namespace
Header hpx/async_cuda/cuda_event.hpp
¶
-
namespace
hpx
-
namespace
cuda
-
namespace
experimental
-
struct
cuda_event_pool
¶ - #include <cuda_event.hpp>
Public Functions
-
cuda_event_pool
()¶
-
~cuda_event_pool
()¶
-
bool
pop
(cudaEvent_t &event)¶
-
bool
push
(cudaEvent_t event)¶
Public Static Functions
-
static cuda_event_pool &
get_event_pool
()¶
Public Static Attributes
-
constexpr int
initial_events_in_pool
= 128¶
Private Functions
-
void
add_event_to_pool
()¶
-
-
struct
-
namespace
-
namespace
Header hpx/async_cuda/cuda_exception.hpp
¶
-
namespace
hpx
-
namespace
cuda
-
namespace
Header hpx/async_cuda/cuda_executor.hpp
¶
-
namespace
hpx
-
namespace
cuda
-
namespace
experimental
-
struct
cuda_executor
: public hpx::cuda::experimental::cuda_executor_base¶ - #include <cuda_executor.hpp>
Subclassed by hpx::cuda::experimental::cublas_executor
Public Functions
-
~cuda_executor
()¶
-
-
struct
cuda_executor_base
¶ - #include <cuda_executor.hpp>
Subclassed by hpx::cuda::experimental::cuda_executor
-
struct
-
namespace
-
namespace
Header hpx/async_cuda/cuda_future.hpp
¶
-
namespace
hpx
-
namespace
cuda
-
namespace
Header hpx/async_cuda/get_targets.hpp
¶
-
namespace
hpx
-
namespace
cuda
-
namespace
experimental
-
namespace
-
namespace
Header hpx/async_cuda/target.hpp
¶
-
namespace
hpx
-
namespace
cuda
-
namespace
experimental
-
-
struct
target
¶ - #include <target.hpp>
Public Functions
-
target
()¶
-
target
(int device)¶
-
native_handle_type &
native_handle
()¶
-
native_handle_type const &
native_handle
() const¶
-
void
synchronize
() const¶
Private Members
-
native_handle_type
handle_
¶
Friends
-
bool
operator==
(target const &lhs, target const &rhs)¶
-
struct
native_handle_type
¶ - #include <target.hpp>
Public Functions
-
native_handle_type
(int device = 0)¶
-
~native_handle_type
()¶
-
native_handle_type
(native_handle_type const &rhs)¶
-
native_handle_type
(native_handle_type &&rhs)¶
-
native_handle_type &
operator=
(native_handle_type const &rhs)¶
-
native_handle_type &
operator=
(native_handle_type &&rhs)¶
-
cudaStream_t
get_stream
() const¶
-
int
get_device
() const¶
-
void
reset
()¶
Private Functions
-
void
init_processing_units
()¶
Friends
-
friend
hpx::cuda::experimental::target
-
-
-
struct
-
namespace
-
namespace