3#include "exceptions.hpp"
6#include "../cuda/cuda.cuh"
9float test(
float x) {
return x; }
13 template <
typename T,
typename Activation>
22 CellularAutomata::cuda::epoch(
30 CellularAutomata::cpu::epoch(
2D convolution kernel
Definition common.hpp:130
const Device device
Computational device.
Definition common.hpp:143
T * kernel
2D Matrix
Definition common.hpp:135
const unsigned int size
Side length of matrix.
Definition common.hpp:139
2D buffered matrices
Definition common.hpp:56
const unsigned int width
Width of 2D Matrix.
Definition common.hpp:76
T * curr
Current 2D Matrix buffer.
Definition common.hpp:61
void swap()
Swaps the current- and next state buffer.
Definition common.inl:139
const unsigned int height
Height of 2D Matrix.
Definition common.hpp:71
const Device device
Computational device.
Definition common.hpp:81
T * next
Next 2D Matrix buffer.
Definition common.hpp:66
Objects are on different devices.
Definition exceptions.hpp:36
Main namespace.
Definition common.hpp:33
void Epoch(State< T > *state, Kernel< T > *kernel, Activation activation, bool recursive)
Runs a single epoch on a given state using a kernel.
Definition epoch.inl:14
@ CUDA
Allocation & computation on NVIDIA GPU via CUDA.
Definition common.hpp:47