opencl_generator_test.cpp 596 B

123456789101112131415161718192021222324252627
  1. /*
  2. * This file is part of ygg-brute
  3. * Copyright (c) 2020 ygg-brute authors
  4. * See LICENSE for licensing information
  5. */
  6. #include "generator_test.hpp"
  7. #include "opencl/engine.hpp"
  8. int main()
  9. {
  10. GeneratorParams params;
  11. params.seed = 1111;
  12. params.seq = 2222;
  13. params.n_blocks = 256;
  14. params.inv_batch_size = 256;
  15. opencl::get_engine().fill_params(params);
  16. auto gen = opencl::get_engine().make_generator(params);
  17. auto ctx = opencl::get_engine().make_generator_context();
  18. for(auto i = 0; i < 3; ++i) {
  19. run_generator_test(*gen, *ctx);
  20. }
  21. return 0;
  22. }