mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
[SYCL] Fix some SYCL tests
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
27367017bd
commit
2f7cce2dd5
@@ -86,7 +86,8 @@ void test_unary_builtins_for_scalar(const Eigen::SyclDevice& sycl_device,
|
||||
{
|
||||
/* Assignment(out, Operator(out)) */
|
||||
Tensor<DataType, 3, DataLayout, int64_t> out(tensor_range);
|
||||
out = out.random() + DataType(0.01);
|
||||
// Offset with 1 to avoid tiny output (< 1e-6) as they can easily fail.
|
||||
out = out.random() + DataType(1);
|
||||
Tensor<DataType, 3, DataLayout, int64_t> reference(out);
|
||||
DataType *gpu_data_out = static_cast<DataType *>(
|
||||
sycl_device.allocate(out.size() * sizeof(DataType)));
|
||||
|
||||
Reference in New Issue
Block a user