DotMP
Public Member Functions | Private Member Functions | List of all members
DotMPTests.GPUTests Class Reference

GPU tests for the DotMP library. More...

Public Member Functions

void GPU_for_works ()
 Tests to make sure that for loops work in GPU kernels. More...
 
void Collapse_works ()
 Tests to make sure that DotMP.GPU.Parallel.ForCollapse produces correct results. More...
 
void One_dimensional_buffer_works ()
 Tests to ensure that 1D buffers work. More...
 
void Two_dimensional_buffer_works ()
 Tests to ensure that 2D buffers work. More...
 
void Three_dimensional_buffer_works ()
 Tests to ensure that 3D buffers work. More...
 

Private Member Functions

void random_init< T > (T[] arr)
 Randomly initialize an array of type T. More...
 

Detailed Description

GPU tests for the DotMP library.

Member Function Documentation

◆ Collapse_works()

void DotMPTests.GPUTests.Collapse_works ( )
inline

Tests to make sure that DotMP.GPU.Parallel.ForCollapse produces correct results.

◆ GPU_for_works()

void DotMPTests.GPUTests.GPU_for_works ( )
inline

Tests to make sure that for loops work in GPU kernels.

◆ One_dimensional_buffer_works()

void DotMPTests.GPUTests.One_dimensional_buffer_works ( )
inline

Tests to ensure that 1D buffers work.

◆ random_init< T >()

void DotMPTests.GPUTests.random_init< T > ( T[]  arr)
inlineprivate

Randomly initialize an array of type T.

Template Parameters
TThe type to initialize to.
Parameters
arrThe allocated array to store values into.

◆ Three_dimensional_buffer_works()

void DotMPTests.GPUTests.Three_dimensional_buffer_works ( )
inline

Tests to ensure that 3D buffers work.

◆ Two_dimensional_buffer_works()

void DotMPTests.GPUTests.Two_dimensional_buffer_works ( )
inline

Tests to ensure that 2D buffers work.


The documentation for this class was generated from the following file: