OpenPFC  0.1.4
Phase Field Crystal simulation framework
Loading...
Searching...
No Matches
memory_traits.hpp File Reference

Type traits for backend metadata and capabilities. More...

Include dependency graph for memory_traits.hpp:

Go to the source code of this file.

Classes

struct  pfc::core::backend_traits< backend::CpuTag >
 CPU backend traits. More...
 

Detailed Description

Type traits for backend metadata and capabilities.

This header provides compile-time type traits that describe the capabilities of different backends. These traits can be used for conditional compilation and static assertions to ensure correct usage of backend-specific features.

// Check if backend supports host access
// Can use operator[]
buffer[0] = 1.0;
}
// Check if backend requires transfers
{
// Must use copy_from_host/to_host
buffer.copy_from_host(host_data);
}
Type traits for backend metadata and capabilities.
Type traits for backend capabilities.
Definition memory_traits.hpp:54
See also
core/backend_tags.hpp for backend tag definitions
core/databuffer.hpp for backend-specific implementations
Author
OpenPFC Development Team
Date
2025