Kokkos II
摘要
In the previous chapter, we covered the fundamentals of using Kokkos. We learned how to write basic kernels and how execution and memory spaces work. We kept the discussion in the framework of C-style memory management with the use of std::malloc and std::free and eventually introduced the Kokkos equivalents Kokkos::kokkos_malloc and Kokkos::kokkos_free. In this chapter, we discuss the preferred way to manage memory in Kokkos, i.e., via the Kokkos::View class.