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

Function PlusOne

tests/cpp/plugin/test_sycl_host_device_vector.cc:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void PlusOne(HostDeviceVector<int> *v) {
43 auto device = v->Device();
44 sycl::TransformOnDeviceData(v->Device(), v->DevicePointer(), v->Size(), [=](size_t a){ return a + 1; });
45 ASSERT_TRUE(v->DeviceCanWrite());
46}
47
48void CheckDevice(HostDeviceVector<int>* v,
49 size_t size,

Callers 2

TestHostDeviceVectorFunction · 0.85
TESTFunction · 0.85

Calls 5

TransformOnDeviceDataFunction · 0.85
DeviceMethod · 0.45
DevicePointerMethod · 0.45
SizeMethod · 0.45
DeviceCanWriteMethod · 0.45

Tested by

no test coverage detected