Skip to content

Fix EOSPAC errors from calls in __host__ __device__ functions #421

@jhp-lanl

Description

@jhp-lanl

We have been a bit lazy with our PORTABLE_INLINE_FUNCTION calls and EOSPAC. Since EOSPAC can't be called from within a device kernel, we need to get rid of those function decorators when calling EOSPAC.

For example,
https://github.com/lanl/singularity-eos/blob/main/singularity-eos/eos/eos_eospac.hpp#L1297

fails on certain platforms with the error error: reference to __host__ function 'eosSafeInterpolate' in __host__ __device__ function.

Metadata

Metadata

Labels

RobustnessEnsures that existing features work as intendedTestingAdditions/changes to the testing infrastruturebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions