OpenPFC  0.1.4
Phase Field Crystal simulation framework
Loading...
Searching...
No Matches
kernels_simple.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 VTT Technical Research Centre of Finland Ltd
2// SPDX-License-Identifier: AGPL-3.0-or-later
3
27#ifndef PFC_GPU_KERNELS_SIMPLE_HPP
28#define PFC_GPU_KERNELS_SIMPLE_HPP
29
31
32namespace pfc {
33namespace gpu {
34
48void add_scalar(GPUVector<double> &vec, double value);
49
63
64} // namespace gpu
65} // namespace pfc
66
67#endif
Simple GPU memory container with RAII management.
void add_scalar(GPUVector< double > &vec, double value)
Add a scalar value to each element of a GPU vector.
void multiply_scalar(GPUVector< double > &vec, double value)
Multiply each element of a GPU vector by a scalar.
Represents the global simulation domain (the "world").
Definition world.hpp:91