MCPcopy Create free account
hub / github.com/dmlc/xgboost / VerifySyclVector

Function VerifySyclVector

tests/cpp/plugin/sycl_helpers.h:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37template<typename T, typename Container>
38void VerifySyclVector(const USMVector<T, MemoryType::shared>& sycl_vector,
39 const Container& host_vector, T eps = T()) {
40 ASSERT_EQ(sycl_vector.Size(), host_vector.size());
41
42 size_t size = sycl_vector.Size();
43 for (size_t i = 0; i < size; ++i) {
44 EXPECT_NEAR(sycl_vector[i], host_vector[i], eps);
45 }
46}
47
48template<typename T, typename Container>
49void VerifySyclVector(const std::vector<T>& sycl_vector,

Callers 3

TESTFunction · 0.85
GHistBuilderTestFunction · 0.85
GHistSubtractionTestFunction · 0.85

Calls 2

SizeMethod · 0.45
sizeMethod · 0.45

Tested by 3

TESTFunction · 0.68
GHistBuilderTestFunction · 0.68
GHistSubtractionTestFunction · 0.68