Data Display
[Tools]

Functions

void checkCudaError (const char *identifier)
 Prints detailed error information of failed cuda functions/kernels.
bool memInfo ()
 Prints GPU memory usage onto the screen.
void showDeviceArray (FLOAT_ARRAY_TYPE *dArray, int N)
 Prints device vector array onto the screen.
void showForces (FLOAT_ARRAY_TYPE *hForce, int &N)
 Prints particle forces onto the screen.
void showNeareastNeighborList (int *dNNListArray, int &N, int &numNN)
 Prints device neareast neighbor list array onto the screen.
void showPositions (FLOAT_ARRAY_TYPE *hPos, int N)
 Prints particle positions onto the screen.
void showVelocities (FLOAT_ARRAY_TYPE *hVel, int &N)
 Prints particle velocities onto the screen.
void showVerletList (int *dVlists, size_t pitchVlists, int *dVcount, int N, int NList)
 Prints device Verlet list array onto the screen.

Detailed Description

This module contains functions to display information in the screen


Function Documentation

void checkCudaError ( const char *  identifier  ) 

Prints detailed error information of failed cuda functions/kernels

Parameters:
[in] identifier Error identifier char-array

Definition at line 378 of file gpu_tools.cu.

Referenced by componentSumReduction(), getHarmonicPotentialEnergy(), getLJCutPotentialEnergy(), main(), removeDrift(), rescaleT(), SqVecSumReduction(), and sumReduction().

bool memInfo (  ) 

Prints GPU memory usage onto the screen

Returns:
Returns true if display was successfully, false else.

Definition at line 354 of file gpu_tools.cu.

Referenced by main().

void showDeviceArray ( FLOAT_ARRAY_TYPE *  dArray,
int  N 
)

Prints device vector array onto the screen

Parameters:
[in] dArray Array of vectors residing in GPU memory
[in] N Number of particles
Returns:
No return value.

Definition at line 462 of file gpu_tools.cu.

References FLOAT_ARRAY_TYPE.

void showForces ( FLOAT_ARRAY_TYPE *  hForce,
int &  N 
)

Prints particle forces onto the screen.

Parameters:
hForce Particle force array in host memory
N Number of particles
Returns:
No return value.

Definition at line 454 of file gpu_tools.cu.

void showNeareastNeighborList ( int *  dNNListArray,
int &  N,
int &  numNN 
)

Prints device neareast neighbor list array onto the screen

Parameters:
[in] dNNListArray Device array of all nearest neighbor lists
[in] N Number of particles
[in] numNN Maximum number of neareast neighbors
Returns:
No return value.

Definition at line 475 of file gpu_tools.cu.

void showPositions ( FLOAT_ARRAY_TYPE *  hPos,
int  N 
)

Prints particle positions onto the screen

Parameters:
[in] hPos Particle position array in host memory
[in] N Number of particles
Returns:
No return value.

Definition at line 438 of file gpu_tools.cu.

void showVelocities ( FLOAT_ARRAY_TYPE *  hVel,
int &  N 
)

Prints particle velocities onto the screen

Parameters:
[in] hVel Particle velocity array in host memory
[in] N Number of particles
Returns:
No return value.

Definition at line 446 of file gpu_tools.cu.

void showVerletList ( int *  dVlists,
size_t  pitchVlists,
int *  dVcount,
int  N,
int  NList 
)

Prints device Verlet list array onto the screen

Parameters:
[in] dVlists Verlet lists array
[in] pitchVlists Memory pitch value for GPU memory
[in] dVcount Vector holding the number of used elements for each Verlet list
[in] N Number of particles
[in] NList Maximum length of each Verlet list

Definition at line 490 of file gpu_tools.cu.

 All Files Functions Defines

Generated on Thu Jun 17 14:22:54 2010 for mdgpu - a molecular dynamic simulation program using GPUs by  doxygen 1.6.1