Profiling
Compile Times
Select a clang compiler
Configure and include -ftime-trace in your CXX FLAGS (this works with clang+cuda).
Clone and build https://github.com/aras-p/ClangBuildAnalyzer. Put the binary directory in your PATH.
Compile Kokkos and KokkosKernels
Create a directory called ftime-trace-artifacts in your build directory
Copy the json files you care about in this directory, for example:
cp ./{sparse,blas}/unit_test/CMakeFiles/*.dir/backends/*.json ftime-trace-artifacts/
Run ClangBuildAnalyzer:
ClangBuildAnalyzer --all ftime-trace-artifacts/ profile.txt
ClangBuildAnalyzer --analyze profile.txt > analyze.txt
Open analyze.txt