Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (22 sloc) 0.647 kB
PREAMBLE = \
"""
#include <algorithm>
"""
INITIALIZE = \
"""
thrust::host_vector<$KeyType> h_keys = unittest::random_integers<$KeyType>($InputSize);
thrust::host_vector<$KeyType> h_keys_copy = h_keys;
"""
TIME = \
"""
std::copy(h_keys_copy.begin(), h_keys_copy.end(), h_keys.begin());
std::sort(h_keys.begin(), h_keys.end());
"""
FINALIZE = \
"""
RECORD_TIME();
RECORD_SORTING_RATE(double($InputSize));
"""
KeyTypes = ['char', 'short', 'int', 'long', 'float', 'double']
InputSizes = [2**N for N in range(10, 25)]
TestVariables = [('KeyType', KeyTypes), ('InputSize', InputSizes)]
Jump to Line
Something went wrong with that request. Please try again.