axom icon indicating copy to clipboard operation
axom copied to clipboard

Issues with `AXOM_DEVICE_CODE` macro

Open kennyweiss opened this issue 3 years ago • 1 comments

The AXOM_DEVICE_CODE macro is supposed to only be enabled for code that is running on a device (i.e. when __CUDA_ARCH__ is defined).

I ran into a situation where AXOM_DEVICE_CODE appeared to be defined within host code. I suspect this is (somehow) related to the combination of object libraries and CUDA_SEPARABLE_COMPILATION, but haven't yet had a chance to track this down.

I'll try to create a reproducer.

Note: I ran into this while attempting to resolve https://github.com/LLNL/axom/issues/724

kennyweiss avatar Nov 23 '21 02:11 kennyweiss

Pay attention to this.

rhornung67 avatar Dec 13 '21 22:12 rhornung67

We suspect this is somehow related to our usage of object libraries. We should revisit this issue after removing object libraries in #1057.

kennyweiss avatar Mar 20 '23 23:03 kennyweiss

Closing until we can define a reproducer.

rhornung67 avatar Jan 22 '24 22:01 rhornung67