CellGPU  0.8.0
GPU-accelerated simulations of cells
Macros | Functions
utilities.cuh File Reference
#include "std_include.h"
#include <cuda_runtime.h>
Include dependency graph for utilities.cuh:
This graph shows which files directly or indirectly include this file:

Functions

bool gpu_dot_Dscalar2_vectors (Dscalar2 *d_vec1, Dscalar2 *d_vec2, Dscalar *d_ans, int N)
 (Dscalar) ans = (Dscalar2) vec1 . vec2 More...
 
bool gpu_serial_reduction (Dscalar *array, Dscalar *output, int helperIdx, int N)
 A trivial reduction of an array by one thread in serial. Think before you use this. More...
 
bool gpu_parallel_reduction (Dscalar *input, Dscalar *intermediate, Dscalar *output, int helperIdx, int N)
 A straightforward two-step parallel reduction algorithm. More...
 
bool gpu_parallel_reduction (Dscalar2 *input, Dscalar2 *intermediate, Dscalar2 *output, int helperIdx, int N)
 A straightforward two-step parallel reduction algorithm for Dscalar2 arrays. More...
 
bool gpu_dot_Dscalar_Dscalar2_vectors (Dscalar *d_vec1, Dscalar2 *d_vec2, Dscalar2 *d_ans, int N)
 (Dscalar2) ans = (Dscalar2) vec1 * vec2 More...
 

Detailed Description

A file providing an interface to the relevant cuda calls for some simple GPU array manipulations