RandomBallCover  1.2.1
 Hosted by GitHub
Namespaces | Functions | Variables
testsScan.cpp File Reference

Google Test Unit Tests for the Scan kernels. More...

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <chrono>
#include <random>
#include <limits>
#include <cmath>
#include <gtest/gtest.h>
#include <CLUtils.hpp>
#include <RBC/algorithms.hpp>
#include <RBC/tests/helper_funcs.hpp>
Include dependency graph for testsScan.cpp:

Namespaces

 RBC
 

Functions

 TEST (Scan, inclusiveScan)
 Tests the inclusiveScan kernel. More...
 
 TEST (Scan, exclusiveScan)
 Tests the exclusiveScan kernel. More...
 
int main (int argc, char **argv)
 

Variables

const std::string kernel_filename_scan { "kernels/scan_kernels.cl" }
 
bool profiling
 

Detailed Description

Google Test Unit Tests for the Scan kernels.

Note
Use the --profiling flag to enable profiling of the kernels.
The benchmarks in these tests are against naive CPU implementations of the associated algorithms. They are used only for testing purposes, and not for examining the performance of their GPU alternatives.
Author
Nick Lamprianidis
Version
1.2.1
Date
2015
Copyright (c) 2015 Nick Lamprianidis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Function Documentation

int main ( int  argc,
char **  argv 
)
TEST ( Scan  ,
inclusiveScan   
)

Tests the inclusiveScan kernel.

The operation is an inclusive scan on the columns of an array.

TEST ( Scan  ,
exclusiveScan   
)

Tests the exclusiveScan kernel.

The operation is an exclusive scan on the columns of an array.

Variable Documentation

const std::string kernel_filename_scan { "kernels/scan_kernels.cl" }
bool profiling