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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Kokkos II

  • Raymond J. Spiteri,
  • Kyle Klenk

摘要

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.