This project is read-only.
2
Vote

add support for accelerator_view

description

i think you should add accelerator_view to your base class and a defaulted version to the derived:
 
amp_rand_collection(
    const concurrency::extent<_rank> rand_extent, 
    accelerator_view acc /*= accelerator::get_default_view()*/, 
    int seed = 0) :
    m_rng_av(concurrency::array<_rng_type, _rank>(rand_extent, acc))
{}
 
 
tinymt_collection(
    const concurrency::extent<_rank> rand_extent, 
    accelerator_view acc = accelerator::get_default_view(), 
    int seed = 0)
    : _base(rand_extent, acc, seed)

comments