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. | |
This module contains functions to display information in the screen
| void checkCudaError | ( | const char * | identifier | ) |
Prints detailed error information of failed cuda functions/kernels
| [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
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
| [in] | dArray | Array of vectors residing in GPU memory |
| [in] | N | Number of particles |
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.
| hForce | Particle force array in host memory | |
| N | Number of particles |
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
| [in] | dNNListArray | Device array of all nearest neighbor lists |
| [in] | N | Number of particles |
| [in] | numNN | Maximum number of neareast neighbors |
Definition at line 475 of file gpu_tools.cu.
| void showPositions | ( | FLOAT_ARRAY_TYPE * | hPos, | |
| int | N | |||
| ) |
Prints particle positions onto the screen
| [in] | hPos | Particle position array in host memory |
| [in] | N | Number of particles |
Definition at line 438 of file gpu_tools.cu.
| void showVelocities | ( | FLOAT_ARRAY_TYPE * | hVel, | |
| int & | N | |||
| ) |
Prints particle velocities onto the screen
| [in] | hVel | Particle velocity array in host memory |
| [in] | N | Number of particles |
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
| [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.
1.6.1