MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / none_of

Function none_of

include/hipSYCL/algorithms/algorithm.hpp:842–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

840
841template <class ForwardIt, class UnaryPredicate>
842sycl::event none_of(sycl::queue &q,
843 ForwardIt first, ForwardIt last, detail::early_exit_flag_t* out,
844 UnaryPredicate p, const std::vector<sycl::event>& deps = {}) {
845 std::size_t problem_size = std::distance(first, last);
846 if(problem_size == 0)
847 return sycl::event{};
848
849 auto evt = any_of(q, first, last, out, p, deps);
850 return q.single_task(evt, [=](){
851 *out = static_cast<detail::early_exit_flag_t>(!(*out));
852 });
853}
854
855template<class ForwardIt, class T>
856sycl::event count(sycl::queue &q, util::allocation_group &scratch_allocations,

Callers 3

deleteGlobalVariableFunction · 0.50
backend_managerMethod · 0.50
test_none_ofFunction · 0.50

Calls 2

any_ofFunction · 0.70
single_taskMethod · 0.45

Tested by 1

test_none_ofFunction · 0.40