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

Defines

#define CUDA_EVENT_SPREADCHARGE   90
#define CUDA_EVENT_GATHERFORCE   91

Functions

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

Variables

__thread DeviceCUDAdeviceCUDA


Define Documentation

#define CUDA_EVENT_GATHERFORCE   91

Referenced by ComputePmeCUDADevice::gatherForceDone(), and ComputePmeCUDADevice::initialize().

#define CUDA_EVENT_SPREADCHARGE   90

Referenced by ComputePmeCUDADevice::gatherForce(), and ComputePmeCUDADevice::initialize().


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().

00026                                         {
00027 #if CUDA_VERSION >= 5050
00028   int leastPriority, greatestPriority;
00029   cudaCheck(cudaDeviceGetStreamPriorityRange(&leastPriority, &greatestPriority));
00030   cudaCheck(cudaStreamCreateWithPriority(&stream,cudaStreamDefault,greatestPriority));
00031   // cudaCheck(cudaStreamCreateWithPriority(&stream,cudaStreamDefault,leastPriority));
00032 #else
00033   cudaCheck(cudaStreamCreate(&stream));
00034 #endif
00035 }

static void gatherForceDoneLoop ( int  first,
int  last,
void *  result,
int  paraNum,
void *  param 
) [inline, static]

Definition at line 1432 of file ComputePmeCUDAMgr.C.

References ComputePmeCUDADevice::gatherForceDoneSubset().

Referenced by ComputePmeCUDADevice::gatherForceDone().

01432                                                                                                     {
01433   ComputePmeCUDADevice* c = (ComputePmeCUDADevice *)param;
01434   c->gatherForceDoneSubset(first, last);
01435 }


Variable Documentation

__thread DeviceCUDA* deviceCUDA

Definition at line 18 of file DeviceCUDA.C.


Generated on Fri Sep 22 01:17:15 2017 for NAMD by  doxygen 1.4.7