Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

msmpot.c File Reference

#include "msmpot_internal.h"

Go to the source code of this file.

Defines

#define NELEMS(a)   ((int)(sizeof(a)/sizeof(a[0])))

Functions

const char * Msmpot_error_string (int retcode)
MsmpotMsmpot_create (void)
 Constructor. More...

void Msmpot_destroy (Msmpot *msm)
 Destructor. More...

int Msmpot_use_cuda (Msmpot *msm, const int *devlist, int listlen, int cuda_optional)

Variables

const char * ERROR_STRING []


Define Documentation

#define NELEMS      ((int)(sizeof(a)/sizeof(a[0])))
 

Definition at line 21 of file msmpot.c.

Referenced by Msmpot_error_string.


Function Documentation

Msmpot* Msmpot_create void   
 

Constructor.

Definition at line 69 of file msmpot.c.

References Msmpot_cuda_create, Msmpot_destroy, Msmpot_set_defaults, and NULL.

Referenced by VolMapCreateCoulombPotentialMSM::compute_frame.

void Msmpot_destroy Msmpot  
 

Destructor.

Definition at line 84 of file msmpot.c.

References Msmpot_cleanup, and Msmpot_cuda_destroy.

const char* Msmpot_error_string int    retcode
 

Definition at line 41 of file msmpot.c.

References ERROR_STRING, and NELEMS.

int Msmpot_use_cuda Msmpot   msm,
const int *    devlist,
int    listlen,
int    cuda_optional
 

Definition at line 93 of file msmpot.c.

References ERRMSG, ERROR, MSMPOT_ERROR_PARAM, MSMPOT_ERROR_SUPPORT, MSMPOT_SUCCESS, and NULL.


Variable Documentation

const char* ERROR_STRING[] [static]
 

Initial value:

 {
  "success",
  "assertion failed",
  "memory allocation error",
  "illegal parameter",
  "unsupported request",
  "CUDA device request failed",
  "CUDA memory allocation error",
  "CUDA memory copy error",
  "CUDA kernel execution failed",
  "CUDA kernel does not support request",
  "unknown error",
}

Definition at line 26 of file msmpot.c.

Referenced by Msmpot_error_string.


Generated on Wed Apr 24 02:43:53 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002