Highly Efficient FFT for Exascale: HeFFTe v2.4
Loading...
Searching...
No Matches
heffte::gpu::magma_handle< tag::gpu > Struct Reference

Wrapper around a MAGMA handle in a GPU context. More...

#include <heffte_magma_helpers.h>

Public Member Functions

 magma_handle (void *gpu_stream)
 Constructor, calls magma_init() and creates a new queue on the given stream.
 
 ~magma_handle ()
 Destructor, cleans the queue and calls magma_finalize().
 
void scal (int num_entries, double scale_factor, float *data) const
 Wrapper around magma_sscal()
 
void scal (int num_entries, double scale_factor, double *data) const
 Wrapper around magma_dscal()
 
template<typename precision_type>
void scal (int num_entries, double scale_factor, std::complex< precision_type > *data) const
 Template for the complex case, uses reinterpret_cast().
 
 magma_handle (void *)
 No-op constructor, see the GPU specialization.
 
void scal (int, double, scalar_type *) const
 Wrapper around MAGMA sscal()/dscal(), but no-op in a CPU context.
 

Public Attributes

void * handle
 Opaque pointer to a magma_queue.
 

Detailed Description

Wrapper around a MAGMA handle in a GPU context.

Class that wraps around MAGMA capabilities.


The documentation for this struct was generated from the following file: