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

References ComputePmeCUDADevice::gatherForceDoneSubset().

Referenced by ComputePmeCUDADevice::gatherForceDone().

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

Variable Documentation

Definition at line 18 of file DeviceCUDA.C.

Generated on 19 Sep 2020 for NAMD by  doxygen 1.6.1