Profiling::*Callee static variables declared in header #863
Labels
Bug
Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
Milestone
Declaring a
static
global variable in a header will cause it to be created in every single translation unit that includes that header. A whole "fake initialize" function was added to silence the compiler's warnings about this. Compiler warnings are telling you something important! These variable declarations should be moved intoKokkos_Profiling_Interface.cpp
to avoid bloating the object files of everything that uses Kokkos.The text was updated successfully, but these errors were encountered: