OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::gpu::cuda::SharedMemory< T > Struct Template Reference

#include <fieldReduction.hh>

+ Collaboration diagram for olb::gpu::cuda::SharedMemory< T >:

Public Member Functions

__device__ operator T* ()
 
__device__ operator const T * () const
 

Detailed Description

template<class T>
struct olb::gpu::cuda::SharedMemory< T >

Definition at line 42 of file fieldReduction.hh.

Member Function Documentation

◆ operator const T *()

template<class T >
__device__ olb::gpu::cuda::SharedMemory< T >::operator const T * ( ) const
inline

Definition at line 49 of file fieldReduction.hh.

50 {
51 extern __shared__ int __smem[];
52 return (T*)__smem;
53 }

◆ operator T*()

template<class T >
__device__ olb::gpu::cuda::SharedMemory< T >::operator T* ( )
inline

Definition at line 43 of file fieldReduction.hh.

44 {
45 extern __shared__ int __smem[];
46 return (T*)__smem;
47 }

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