Open Yurlungur opened 1 year ago
The PORTABILITY_STRATEGY_NONE
falls into the #else
at the end of the preprocessor if-then-else.
Now, this may be somewhat imprecise, as PORTABILITY_STRATEGY_HAMSTER
or PORTABILITY_TACTICS_360NOSCOPE
or whatever gibberish.
Probably the best solution here is
#if !(defined PS_KOKKOS || defined PS_CUDA)
#define PS_NONE
#endif
#elif defined PS_NONE
//
#else
#error "Cannot retrieve PS, check build"
#endif
That would work.
It should be. Until this is resolved, downstream codes must set the strategy themselves.