diff options
Diffstat (limited to 'modules/remote-sycl/benchmarks/mixed_precision.cpp')
-rw-r--r-- | modules/remote-sycl/benchmarks/mixed_precision.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/remote-sycl/benchmarks/mixed_precision.cpp b/modules/remote-sycl/benchmarks/mixed_precision.cpp index b979b0c..b554a1c 100644 --- a/modules/remote-sycl/benchmarks/mixed_precision.cpp +++ b/modules/remote-sycl/benchmarks/mixed_precision.cpp @@ -6,7 +6,8 @@ int main(){ using namespace saw; - constexpr uint64_t max_test_size = 1024ul * 1024ul * 256ul; + uint64_t start_test_size = 1024ul * 1024ul; + uint64_t max_test_size = start_test_size * 1024ul; std::random_device r; std::default_random_engine e1{r()}; @@ -52,7 +53,7 @@ int main(){ * Warmup */ std::cout<<"Warming up ..."<<std::endl; - for(uint64_t test_size = 1024ul; test_size < max_test_size; test_size *= 2ul){ + for(uint64_t test_size = 1ul; test_size < max_test_size; test_size *= 2ul){ mixed_host_data = {test_size}; float64_host_data = {test_size}; @@ -73,12 +74,15 @@ int main(){ device.get_handle().wait(); } - std::cout<<"Benchmark starting ..."<<std::endl; + std::cout<<"Benchmark starting ..."; /** * Benchmark */ std::stringstream sstr; - for(uint64_t test_size = 1ul; test_size < max_test_size; test_size *= 2ul){ + for(uint64_t test_size = start_test_size; test_size < max_test_size; test_size *= 2ul){ + + (std::cout<<'.').flush(); + data<sch::MixedArray> mixed_host_data; data<sch::Float64Array> float64_host_data; data<sch::Float32Array> float32_host_data; |