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.


class  CudaPmeAtomStorage
class  CpuPmeAtomStorage


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


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

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 1427 of file ComputePmeCUDAMgr.C.

References ComputePmeCUDADevice::gatherForceDoneSubset().

Referenced by ComputePmeCUDADevice::gatherForceDone().

01427                                                                                                     {
01428   ComputePmeCUDADevice* c = (ComputePmeCUDADevice *)param;
01429   c->gatherForceDoneSubset(first, last);
01430 }

Variable Documentation

__thread DeviceCUDA* deviceCUDA

Definition at line 18 of file DeviceCUDA.C.

Generated on Sat Jul 21 01:17:16 2018 for NAMD by  doxygen 1.4.7