Unit Testing - mwgeurts/gamma GitHub Wiki
Unit testing was performed using an automated test harness developed to execute each unit test stored in UnitTest()
and, where relevant, compare the results to pre-validated reference data. Refer to the documentation UnitTest()
for a description and conditions of each unit test.
Contents
Test System Configuration
Computation times are documented based on the following system configuration and reflect elapsed real time (as opposed to CPU time). Note, other hardware configurations may also be run during compatibility testing.
Specification |
Configuration |
Operating System |
Mac OS X 10.10.2 |
Processor |
Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz |
Frequency |
3500 MHz |
Number of Cores |
4 |
L2 Cache (per core) |
256 KB |
Memory |
15.99 GB (7.77 GB available) |
Graphics Card |
GeForce GTX 780M |
Graphics Memory |
4096 MB (573 MB available) |
CUDA Version |
3.0 |
MATLAB Version |
R2014b |
Test Suite Results
Input Data |
Value |
Analytic 1D Gamma Array |
1 x 2001 |
Beam Profile 1D Gamma Array |
1 x 498 |
Simple 2D Gamma Array |
100 x 100 |
Dose Volume 3D Gamma Array |
284 x 256 x 158 |
ID |
Test Case |
Result |
1 |
Analytic 1D Gamma GPU Result within 1e-5 |
Pass |
2 |
Analytic 1D Gamma GPU Computation Time |
0.7 sec |
3 |
Analytic 1D Gamma CPU Result within 1e-5 |
Pass |
4 |
Analytic 1D Gamma CPU Computation Time |
0.2 sec |
5 |
Beam Profile 1D Gamma GPU Result within 1e-5 |
Pass |
6 |
Beam Profile 1D Gamma GPU Computation Time |
0.5 sec |
7 |
Beam Profile 1D Gamma CPU Result within 1e-5 |
Pass |
8 |
Beam Profile 1D Gamma CPU Computation Time |
0.2 sec |
9 |
Simple 2D Gamma GPU Result within 1e-5 |
Pass |
10 |
Simple 2D Gamma GPU Computation Time |
4.6 sec |
11 |
Simple 2D Gamma CPU Result within 1e-5 |
Pass |
12 |
Simple 2D Gamma CPU Computation Time |
8.9 sec |
13 |
Dose Volume 3D Gamma GPU Result within 1e-5 |
Pass |
14 |
Dose Volume 3D Gamma GPU Computation Time |
57.2 sec |
15 |
Dose Volume 3D Gamma CPU Result within 1e-5 |
Pass |
16 |
Dose Volume 3D Gamma CPU Computation Time |
249.8 sec |
17 |
Data Validation Checks Functional |
Pass |
18 |
Code Analyzer Messages |
0 |
19 |
Cumulative Cyclomatic Complexity |
61 |
Code Coverage
Function |
Coverage |
CalcGamma |
94.0% |
GammaEquation |
100.0% |