10 #ifndef PROGS_SRC_OPENCL_OPENCL_OPENCL_HPP_ 11 #define PROGS_SRC_OPENCL_OPENCL_OPENCL_HPP_ 53 unsigned int opencl_nb_number = 65536,
54 bool print_bad =
true,
bool print_time =
true);
74 unsigned int opencl_nb = 1024,
75 bool print_bad =
true,
bool print_time =
true);
94 const std::vector<nat_type> &ns);
98 #endif // PROGS_SRC_OPENCL_OPENCL_OPENCL_HPP_ std::vector< nat_type > opencl_run_program_on_ns(const std::string &filename, const std::string &kernal_name, const std::vector< nat_type > &ns)
Run the OpenCL program from filename on ns. Used for tests.
unsigned long nat_type
Type for natural number used in all code, on 64 bits.
Helper functions for the OpenCL.
std::set< nat_type > opencl_check_gentle_varsigma_odd(nat_type first_n, nat_type last_n, unsigned int opencl_nb_number, bool print_bad, bool print_time)
Check in the order all odd gentle numbers between first_n and last_n, and if print_bad then print all...
std::vector< nat_type > opencl_check_ns(const std::vector< nat_type > &ns)
Check all numbers in ns and return vector of all bad numbers found.
std::set< nat_type > opencl_check_gentle_varsigma_odd__parallelize_factorization(nat_type first_n, nat_type last_n, unsigned int opencl_nb, bool print_bad, bool print_time)
Like opencl_check_gentle_varsigma_odd() but instead parallelize on group of opencl_nb numbers...