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

Benchmark.C File Reference

#include <stdlib.h>
#include <string.h>
#include "WKFUtils.h"
#include "WKFThreads.h"
#include "utilities.h"

Go to the source code of this file.

Defines

#define RESTRICT
#define VECTORIZEME

Functions

void dstream_init (double *RESTRICT a, double *RESTRICT b, double *RESTRICT c, int N)
void dstream_copy (double *RESTRICT a, const double *RESTRICT b, int N, double *mbsize)
void dstream_scale (double *RESTRICT a, const double *RESTRICT b, double scalar, int N, double *mbsize)
void dstream_add (double *RESTRICT a, const double *RESTRICT b, const double *RESTRICT c, int N, double *mbsize)
void dstream_triad (double *RESTRICT a, const double *RESTRICT b, const double *RESTRICT c, double scalar, int N, double *mbsize)
void fstream_init (float *RESTRICT a, float *RESTRICT b, float *RESTRICT c, int N)
void fstream_copy (float *RESTRICT a, const float *RESTRICT b, int N, double *mbsize)
void fstream_scale (float *RESTRICT a, const float *RESTRICT b, float scalar, int N, double *mbsize)
void fstream_add (float *RESTRICT a, const float *RESTRICT b, const float *RESTRICT c, int N, double *mbsize)
void fstream_triad (float *RESTRICT a, const float *RESTRICT b, const float *RESTRICT c, float scalar, int N, double *mbsize)
int stream_bench (int N, double *time, double *mbsec)
 built-in minor variation of the STREAM benchmark. More...

void vmdbench_minmax_1fv (int sz, int reps, double &runtime, double &bwmbsec)
 benchmarking routines for atom selections and SIMD-accelerated array/vector/volume analysis routines. More...

void vmdbench_minmaxmean_1fv (int sz, int reps, double &runtime, double &bwmbsec)
void vmdbench_minmax_3fv (int sz, int reps, double &runtime, double &bwmbsec)
void vmdbench_analyze_selection (int sz, int reps, double &runtime, double &bwmbsec)


Define Documentation

#define RESTRICT
 

Definition at line 44 of file Benchmark.C.

Referenced by dstream_add, dstream_copy, dstream_init, dstream_scale, dstream_triad, fstream_add, fstream_copy, fstream_init, fstream_scale, and fstream_triad.

#define VECTORIZEME
 

Definition at line 55 of file Benchmark.C.

Referenced by dstream_add, dstream_copy, dstream_init, dstream_scale, dstream_triad, fstream_add, fstream_copy, fstream_init, fstream_scale, and fstream_triad.


Function Documentation

void dstream_add double *RESTRICT    a,
const double *RESTRICT    b,
const double *RESTRICT    c,
int    N,
double *    mbsize
 

Definition at line 94 of file Benchmark.C.

References RESTRICT, and VECTORIZEME.

Referenced by stream_bench.

void dstream_copy double *RESTRICT    a,
const double *RESTRICT    b,
int    N,
double *    mbsize
 

Definition at line 74 of file Benchmark.C.

References RESTRICT, and VECTORIZEME.

Referenced by stream_bench.

void dstream_init double *RESTRICT    a,
double *RESTRICT    b,
double *RESTRICT    c,
int    N
 

Definition at line 63 of file Benchmark.C.

References RESTRICT, and VECTORIZEME.

Referenced by stream_bench.

void dstream_scale double *RESTRICT    a,
const double *RESTRICT    b,
double    scalar,
int    N,
double *    mbsize
 

Definition at line 84 of file Benchmark.C.

References RESTRICT, and VECTORIZEME.

Referenced by stream_bench.

void dstream_triad double *RESTRICT    a,
const double *RESTRICT    b,
const double *RESTRICT    c,
double    scalar,
int    N,
double *    mbsize
 

Definition at line 104 of file Benchmark.C.

References RESTRICT, and VECTORIZEME.

Referenced by stream_bench.

void fstream_add float *RESTRICT    a,
const float *RESTRICT    b,
const float *RESTRICT    c,
int    N,
double *    mbsize
 

Definition at line 152 of file Benchmark.C.

References RESTRICT, and VECTORIZEME.

Referenced by stream_bench.

void fstream_copy float *RESTRICT    a,
const float *RESTRICT    b,
int    N,
double *    mbsize
 

Definition at line 132 of file Benchmark.C.

References RESTRICT, and VECTORIZEME.

Referenced by stream_bench.

void fstream_init float *RESTRICT    a,
float *RESTRICT    b,
float *RESTRICT    c,
int    N
 

Definition at line 121 of file Benchmark.C.

References RESTRICT, and VECTORIZEME.

Referenced by stream_bench.

void fstream_scale float *RESTRICT    a,
const float *RESTRICT    b,
float    scalar,
int    N,
double *    mbsize
 

Definition at line 142 of file Benchmark.C.

References RESTRICT, and VECTORIZEME.

Referenced by stream_bench.

void fstream_triad float *RESTRICT    a,
const float *RESTRICT    b,
const float *RESTRICT    c,
float    scalar,
int    N,
double *    mbsize
 

Definition at line 162 of file Benchmark.C.

References RESTRICT, and VECTORIZEME.

Referenced by stream_bench.

int stream_bench int    N,
double *    time,
double *    mbsec
 

built-in minor variation of the STREAM benchmark.

Definition at line 177 of file Benchmark.C.

References dstream_add, dstream_copy, dstream_init, dstream_scale, dstream_triad, fstream_add, fstream_copy, fstream_init, fstream_scale, fstream_triad, NULL, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.

void vmdbench_analyze_selection int    sz,
int    reps,
double &    runtime,
double &    bwmbsec
 

Definition at line 385 of file Benchmark.C.

References analyze_selection_aligned, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.

void vmdbench_minmax_1fv int    sz,
int    reps,
double &    runtime,
double &    bwmbsec
 

benchmarking routines for atom selections and SIMD-accelerated array/vector/volume analysis routines.

Definition at line 289 of file Benchmark.C.

References minmax_1fv_aligned, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.

void vmdbench_minmax_3fv int    sz,
int    reps,
double &    runtime,
double &    bwmbsec
 

Definition at line 350 of file Benchmark.C.

References minmax_3fv_aligned, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.

void vmdbench_minmaxmean_1fv int    sz,
int    reps,
double &    runtime,
double &    bwmbsec
 

Definition at line 319 of file Benchmark.C.

References minmaxmean_1fv_aligned, wkf_timer_create, wkf_timer_destroy, wkf_timer_start, wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.


Generated on Thu Mar 28 02:44:31 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002