// Copyright 2009-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "parallel_partition.h" #include "../sys/regression.h" namespace embree { struct parallel_partition_regression_test : public RegressionTest { parallel_partition_regression_test(const char* name) : RegressionTest(name) { registerRegressionTest(this); } bool run () { bool passed = true; for (size_t i=0; i<100; i++) { /* create random permutation */ size_t N = std::rand() % 1000000; std::vector array(N); for (unsigned i=0; i= split; } return passed; } }; parallel_partition_regression_test parallel_partition_regression("parallel_partition_regression_test"); }