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

CUDAClearDevice.cu File Reference

CUDA utility to test and clear GPU memory systems to known values. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cuda.h>
#include "utilities.h"
#include "CUDAKernels.h"

Go to the source code of this file.

Defines

#define CUERR
#define MAXLOOPS   16

Functions

void * vmd_cuda_devpool_clear_device_mem (void *voidparms)

Variables

__constant__ float constbuf [16384]


Detailed Description

CUDA utility to test and clear GPU memory systems to known values.

Definition in file CUDAClearDevice.cu.


Define Documentation

#define CUERR
 

Value:

{ cudaError_t err; \
  if ((err = cudaGetLastError()) != cudaSuccess) { \
  printf("CUDA error: %s, %s line %d\n", cudaGetErrorString(err), __FILE__, __LINE__); \
  return NULL; }}

Definition at line 28 of file CUDAClearDevice.cu.

Referenced by vmd_cuda_devpool_clear_device_mem.

#define MAXLOOPS   16
 

Definition at line 38 of file CUDAClearDevice.cu.

Referenced by vmd_cuda_devpool_clear_device_mem.


Function Documentation

void* vmd_cuda_devpool_clear_device_mem void *    voidparms
 

Definition at line 40 of file CUDAClearDevice.cu.

References constbuf, CUERR, MAXLOOPS, NULL, wkf_threadpool_worker_getdevid, and wkf_threadpool_worker_getid.


Variable Documentation

__constant__ float constbuf[16384] [static]
 

Definition at line 35 of file CUDAClearDevice.cu.

Referenced by vmd_cuda_devpool_clear_device_mem.


Generated on Tue Apr 23 04:24:28 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002