gpuThreadUtils.hpp File Reference
#include <cstddef>
#include <cuda.h>
#include <cuda_runtime.h>
#include <opm/simulators/linalg/gpuistl/detail/gpu_safe_call.hpp>
Include dependency graph for gpuThreadUtils.hpp:

Go to the source code of this file.

Namespaces

namespace  Opm
 
namespace  Opm::gpuistl
 
namespace  Opm::gpuistl::detail
 

Functions

constexpr size_t Opm::gpuistl::detail::getThreads (size_t numberOfRows)
 
size_t Opm::gpuistl::detail::getBlocks (size_t numberOfRows)
 
template<class Kernel >
int Opm::gpuistl::detail::getCudaRecomendedThreadBlockSize (Kernel k, int suggestedThrBlockSize=-1)
 
int Opm::gpuistl::detail::getNumberOfBlocks (int wantedThreads, int threadBlockSize)