NAMD
Classes | Functions | Variables
ComputePmeCUDAMgr.C File Reference
#include <vector>
#include <numeric>
#include <algorithm>
#include "Node.h"
#include "PatchMap.h"
#include "WorkDistrib.h"
#include "Priorities.h"
#include "CudaUtils.h"
#include "SimParameters.h"
#include "CudaPmeSolverUtil.h"
#include "ComputePmeCUDAMgr.h"
#include "CudaPmeSolver.h"
#include "ComputePmeCUDA.h"
#include "DeviceCUDA.h"
#include "ComputePmeCUDAMgr.def.h"

Go to the source code of this file.

Classes

class  CudaPmeAtomStorage
 
class  CpuPmeAtomStorage
 

Functions

void createStream (cudaStream_t &stream)
 
static void gatherForceDoneLoop (int first, int last, void *result, int paraNum, void *param)
 

Variables

__thread DeviceCUDAdeviceCUDA
 

Function Documentation

void createStream ( cudaStream_t &  stream)

Definition at line 26 of file ComputePmeCUDAMgr.C.

References cudaCheck.

Referenced by ComputePmeCUDADevice::initialize(), and ComputePmeCUDAMgr::initialize_pencils().

26  {
27 #if CUDA_VERSION >= 5050
28  int leastPriority, greatestPriority;
29  cudaCheck(cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority));
30  cudaCheck(cudaStreamCreateWithPriority(&stream,cudaStreamDefault,greatestPriority));
31  // cudaCheck(cudaStreamCreateWithPriority(&stream,cudaStreamDefault,leastPriority));
32 #else
33  cudaCheck(cudaStreamCreate(&stream));
34 #endif
35 }
__thread cudaStream_t stream
#define cudaCheck(stmt)
Definition: CudaUtils.h:79
static void gatherForceDoneLoop ( int  first,
int  last,
void result,
int  paraNum,
void param 
)
inlinestatic

Definition at line 1426 of file ComputePmeCUDAMgr.C.

References ComputePmeCUDADevice::gatherForceDoneSubset().

Referenced by ComputePmeCUDADevice::gatherForceDone().

1426  {
1428  c->gatherForceDoneSubset(first, last);
1429 }
void gatherForceDoneSubset(int first, int last)

Variable Documentation

__thread DeviceCUDA* deviceCUDA

Definition at line 18 of file DeviceCUDA.C.