Skip to content

GPU support for BoxArray with custom class #625

Open
@bsrunnels

Description

@bsrunnels

I'm encountering an issue on GPU when creating FabArrays of BaseFabs that use a non-int, non-amrex::Real template argument. For instance the following line:

    amrex::FabArray<amrex::BaseFab<model_type> > mytmpmodel;
    mytmpmodel.define(grid,dm,1,2);

where model_type is a custom non-POD class. The define statement produces the runtime error

   amrex::Abort::0::CUDA error in file amrex/3d-debug-cuda-g++//include/AMReX_GpuDevice.H line 150 unspecified launch failure !!!

It works fine if I replace model_type with amrex::Real. I'm wondering if it is possible to use such class-templated MultiFabs on GPU, or if it is a limitation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions