Go to the source code of this file.
Functions | |
| template<typename T, size_t stride> | |
| __global__ void | cuda_kernel_set_value (cs_lnum_t n, const T ref_val, const int size_arrs, T **array_ptrs) |
| template<typename T, size_t stride> | |
| __global__ void | cuda_kernel_set_value (cs_lnum_t n, const T *ref_val, const int size_arrs, T **array_ptrs) |
| template<typename T, size_t stride, typename... Arrays> | |
| void | cs_arrays_set_value (cudaStream_t stream, const cs_lnum_t n_elts, const T *ref_val, Arrays &&... arrays) |
| Assign values to all elements of multiple arrays. ref_val is input as a pointer or an array. | |
| template<typename T, size_t stride, typename... Arrays> | |
| void | cs_arrays_set_value (cudaStream_t stream, const cs_lnum_t n_elts, const T ref_val, Arrays &&... arrays) |
| Assign values to all elements of multiple arrays. ref_val is input as a scalar value. | |
| template<typename T> | |
| void | cs_array_copy (cudaStream_t stream, const cs_lnum_t size, const T *src, T *dest) |
| Copy values from an array to another of the same dimensions. | |
| void cs_array_copy | ( | cudaStream_t | stream, |
| const cs_lnum_t | size, | ||
| const T * | src, | ||
| T * | dest ) |
Copy values from an array to another of the same dimensions.
Template parmeters. T type name
| [in] | stream | cuda stream used for the operation |
| [in] | size | number of elements * dimension |
| [in] | src | source array values |
| [out] | dest | destination array values |
| void cs_arrays_set_value | ( | cudaStream_t | stream, |
| const cs_lnum_t | n_elts, | ||
| const T * | ref_val, | ||
| Arrays &&... | arrays ) |
Assign values to all elements of multiple arrays. ref_val is input as a pointer or an array.
Template parmeters. T type name stride 1 for scalars, 3 for vectors, 6 for symetric tensors Arrays varadiac parameters pack
Function parameters:
| [in] | stream | cuda stream used for the operation |
| [in] | n_elts | total number of elements to set |
| [in] | ref_val | value to assign |
| [out] | arrays | arrays to set |
| void cs_arrays_set_value | ( | cudaStream_t | stream, |
| const cs_lnum_t | n_elts, | ||
| const T | ref_val, | ||
| Arrays &&... | arrays ) |
Assign values to all elements of multiple arrays. ref_val is input as a scalar value.
Template parmeters. T type name stride 1 for scalars, 3 for vectors, 6 for symetric tensors Arrays varadiac parameters pack
Function parameters:
| [in] | stream | cuda stream used for the operation |
| [in] | n_elts | total number of elements to set |
| [in] | ref_val | value to assign |
| [out] | arrays | arrays to set |
| __global__ void cuda_kernel_set_value | ( | cs_lnum_t | n, |
| const T * | ref_val, | ||
| const int | size_arrs, | ||
| T ** | array_ptrs ) |
| __global__ void cuda_kernel_set_value | ( | cs_lnum_t | n, |
| const T | ref_val, | ||
| const int | size_arrs, | ||
| T ** | array_ptrs ) |