EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Classes | Namespaces
EBGeometry_Array.hpp File Reference

A fixed-size array that compiles for both host and device. More...

#include <cstddef>
#include "EBGeometry_GPU.hpp"
Include dependency graph for EBGeometry_Array.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EBGeometry::Array< T, N >
 Fixed-size array with host- and device-callable members. More...
 

Namespaces

namespace  EBGeometry
 Namespace containing all of EBGeometry's functionality.
 

Detailed Description

A fixed-size array that compiles for both host and device.

std::array's member functions are constexpr host functions, which nvcc rejects in device code unless every translation unit is compiled with –expt-relaxed-constexpr. The library uses this instead, everywhere under Source/; Scripts/CheckDeviceMath.py enforces that.

Author
Robert Marskar