This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Kokkos::view_alloc
Daniel Arndt edited this page Feb 8, 2022
·
4 revisions
Header File: Kokkos_View.hpp
Usage:
Kokkos::view_alloc(exec_space, Kokkos::WithoutInitializing, "ViewString");
Kokkos::view_wrap(pointer_to_wrapping_memory);
Create View allocation parameter bundle from argument list. Valid argument list members are:
- label as
C
-string orstd::string
- memory space instance of the
View::memory_space
type - execution space instance able to access
View::memory_space
-
Kokkos::WithoutInitializing
to bypass initialization -
Kokkos::AllowPadding
to allow allocation to pad dimensions for memory alignment - a pointer to create an unmanaged View wrapping that pointer
template <class... Args>
**implementation-detail**
view_alloc(Args const&... args);
template <class... Args>
KOKKOS_FUNCTION
**implementation-detail**
view_wrap(Args const&... args);
-
template <class... Args> **implementation-detail** view_alloc(Args const&... args);
Create View allocation parameter bundle from argument list.
Restrictions:
-
args
: Cannot contain a pointer to memory.
-
-
template <class... Args> **implementation-detail** view_alloc(Args const&... args);
Create View allocation parameter bundle from argument list.
Restrictions:
-
args
: Can only be a pointer to memory.
-
Home:
- Introduction
- Machine Model
- Programming Model
- Compiling
- Initialization
- View
- Parallel Dispatch
- Hierarchical Parallelism
- Custom Reductions
- Atomic Operations
- Subviews
- Interoperability
- Kokkos and Virtual Functions
- Initialization and Finalization
- View
- Data Parallelism
- Execution Policies
- Spaces
- Task Parallelism
- Utilities
- STL Compatibility
- Numerics
- Detection Idiom