#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cuda.h>
#include "Inform.h"
#include "WKFThreads.h"
#include "WKFUtils.h"
#include "CUDAKernels.h"
#include "Measure.h"
Go to the source code of this file.
Definition in file CUDABench.cu.
Value:
{ cudaError_t err; \
if ((err = cudaGetLastError()) != cudaSuccess) { \
printf("CUDA error: %s, %s line %d\n", cudaGetErrorString(err), __FILE__, __LINE__); \
return -1; }}Definition at line 54 of file CUDABench.cu.
Referenced by cudabusbw, cudaglobmembw, cudamaddgflops, Msmpot_cuda_compute_latcut, Msmpot_cuda_compute_shortrng, Msmpot_cuda_setup_latcut, and Msmpot_cuda_setup_shortrng.
Definition at line 91 of file CUDABench.cu.
Value:
tmp0 = tmp0*tmp4+tmp7; \ tmp1 = tmp1*tmp5+tmp0; \ tmp2 = tmp2*tmp6+tmp1; \ tmp3 = tmp3*tmp7+tmp2; \ tmp4 = tmp4*tmp0+tmp3; \ tmp5 = tmp5*tmp1+tmp4; \ tmp6 = tmp6*tmp2+tmp5; \ tmp7 = tmp7*tmp3+tmp6; \ tmp8 = tmp8*tmp12+tmp15; \ tmp9 = tmp9*tmp13+tmp8; \ tmp10 = tmp10*tmp14+tmp9; \ tmp11 = tmp11*tmp15+tmp10; \ tmp12 = tmp12*tmp8+tmp11; \ tmp13 = tmp13*tmp9+tmp12; \ tmp14 = tmp14*tmp10+tmp13; \ tmp15 = tmp15*tmp11+tmp14;
Definition at line 68 of file CUDABench.cu.
Referenced by madd_kernel.
Definition at line 90 of file CUDABench.cu.
Definition at line 87 of file CUDABench.cu.
Referenced by VolMapCreateDistance::compute_frame, VolMapCreateOccupancy::compute_frame, VolMapCreateInterp::compute_frame, VolMapCreateDensity::compute_frame, VolMapCreateMask::compute_frame, and cudamaddgflops.
Definition at line 37 of file CUDABench.cu.
[static]
Definition at line 280 of file CUDABench.cu.
References BWITER, CUERR, LATENCYITER, NULL, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.
Referenced by cudabusbwthread.
[static]
Definition at line 445 of file CUDABench.cu.
References cudabusbw, busbwthrparms::deviceid, busbwthrparms::dhlatusec, busbwthrparms::dhmbsec, busbwthrparms::hdlatusec, busbwthrparms::hdmbsec, NULL, busbwthrparms::pdhlatusec, busbwthrparms::pdhmbsec, busbwthrparms::phdlatusec, and busbwthrparms::phdmbsec.
Referenced by vmd_cuda_bus_bw.
[static]
Definition at line 538 of file CUDABench.cu.
References CUERR, datatype, and make_float4.
Referenced by cudaglobmembwthread.
[static]
Definition at line 634 of file CUDABench.cu.
References cudaglobmembw, globmembwthrparms::deviceid, globmembwthrparms::memcpygbsec, globmembwthrparms::memsetgbsec, and NULL.
Referenced by vmd_cuda_globmem_bw.
[static]
Definition at line 147 of file CUDABench.cu.
References BLOCKSIZEX, CUERR, FLOPSPERLOOP, GLOOPS, GRIDSIZEX, NULL, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.
Referenced by cudamaddthread.
[static]
Definition at line 213 of file CUDABench.cu.
References cudamaddgflops, maddthrparms::deviceid, maddthrparms::gflops, NULL, and maddthrparms::testloops.
Referenced by vmd_cuda_madd_gflops.
Definition at line 1213 of file CUDABench.cu.
References wkf_tasktile_struct::end, fio_fd, NULL, AtomSel::num_atoms, wkf_tasktile_struct::start, wkf_threadpool_create, wkf_threadpool_destroy, wkf_threadpool_launch, wkf_threadpool_sched_dynamic, wkf_timer_create, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.
Definition at line 525 of file CUDABench.cu.
Definition at line 531 of file CUDABench.cu.
[static]
[static]
Definition at line 455 of file CUDABench.cu.
References cudabusbwthread, busbwthrparms::deviceid, busbwthrparms::dhlatusec, busbwthrparms::dhmbsec, busbwthrparms::hdlatusec, busbwthrparms::hdmbsec, NULL, busbwthrparms::pdhlatusec, busbwthrparms::pdhmbsec, busbwthrparms::phdlatusec, busbwthrparms::phdmbsec, wkf_thread_create, wkf_thread_join, and wkf_thread_t.
Definition at line 761 of file CUDABench.cu.
References wkf_tasktile_struct::end, NULL, wkf_tasktile_struct::start, vmd_cuda_measure_latencies, vmddevpoolcudatilelatencythread, vmddevpoollatencythread, vmddevpooltilelatencythread, wkf_threadpool_launch, wkf_threadpool_sched_dynamic, wkf_threadpool_wait, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.
Definition at line 640 of file CUDABench.cu.
References cudaglobmembwthread, globmembwthrparms::deviceid, globmembwthrparms::memcpygbsec, globmembwthrparms::memsetgbsec, NULL, wkf_thread_create, wkf_thread_join, and wkf_thread_t.
Definition at line 219 of file CUDABench.cu.
References cudamaddthread, maddthrparms::deviceid, maddthrparms::gflops, NULL, maddthrparms::testloops, wkf_thread_create, wkf_thread_join, and wkf_thread_t.
Definition at line 909 of file CUDABench.cu.
References latthrparms::deviceid, latthrparms::testloops, vmddevpoolcudalatencythread, wkf_threadpool_get_workercount, and wkf_threadpool_launch.
[static]
Definition at line 854 of file CUDABench.cu.
References latthrparms::deviceid, latthrparms::kernlatency, NULL, latthrparms::testloops, wkf_threadpool_worker_getdata, wkf_threadpool_worker_getid, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.
Referenced by vmd_cuda_measure_latencies.
[static]
Definition at line 729 of file CUDABench.cu.
References NULL, WKF_SCHED_DONE, wkf_threadpool_next_tile, wkf_threadpool_worker_devscaletile, wkf_threadpool_worker_getdata, and wkf_threadpool_worker_getid.
Referenced by vmd_cuda_devpool_latency.
[static]
Definition at line 693 of file CUDABench.cu.
References NULL.
Referenced by vmd_cuda_devpool_latency.
[static]
Definition at line 697 of file CUDABench.cu.
References NULL, WKF_SCHED_DONE, wkf_threadpool_next_tile, wkf_threadpool_worker_getdata, and wkf_threadpool_worker_getid.
Referenced by vmd_cuda_devpool_latency.
[static]
Definition at line 725 of file CUDABench.cu.