Closed jacobmerson closed 1 year ago
@ibaned
Thanks for pinging me @jacobmerson ! I wouldn't have seen this otherwise. That function wasn't marked before because I thought std::initializer_list didn't work on GPU, but I'm glad you're able to use it today!
This pull request fixes a bug in the few class (missing OMEGA_H_INLINE). When running with Kokkos+Cuda this was causing memory corruption when using the Vector initializer_list constructor since the constructor code did not exist on the device side.
Most likely due to the use through inheritance the compiler was not warning about missing host device annotations.