Skip to content

Add thrust for filling data #3

@jotachango

Description

@jotachango

To improve performance use thrust in that way:

    thrust::device_ptr<double> f_n_wrapped(f_n_ptr);
    thrust::fill(
            f_n_wrapped,
            f_n_wrapped + num_div_x*num_div_y,
            0.0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions