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

Function should_use_memset

include/hipSYCL/algorithms/algorithm.hpp:78–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78inline bool should_use_memset(const sycl::device& dev) {
79#ifdef __ACPP_STDPAR_ENABLE_AUTO_MULTIQUEUE__
80 // MQS assumes that all operations are kernels
81 return false;
82#endif
83
84 if(dev.get_backend() == sycl::backend::omp)
85 return false;
86 if(dev.get_backend() == sycl::backend::ocl)
87 return false;
88 if(dev.get_backend() == sycl::backend::hip)
89 return false;
90
91 return true;
92}
93
94}
95

Callers 1

fillFunction · 0.85

Calls 1

get_backendMethod · 0.45

Tested by

no test coverage detected