aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-11-19 10:56:24 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-11-19 10:56:24 -0800
commit9265ca707ecde69c654029ff7209eff5cb50ffd4 (patch)
tree00725895167c714f1fdf313604137fe3ed0c3c15 /unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
parentaf67335e0e74d9f6d26fed6a5d6d7fda5bc6fca3 (diff)
Made it possible to check the state of a sycl device without synchronization
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
index 3fe0219ac..25500683f 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h
@@ -105,15 +105,16 @@ struct QueueInterface {
if((it->first < (static_cast<const uint8_t*>(ptr))) && ((static_cast<const uint8_t*>(ptr)) < (it->first + size)) ) return it;
}
}
- //eigen_assert("No sycl buffer found. Make sure that you have allocated memory for your buffer by calling allocate function in SyclDevice");
std::cerr << "No sycl buffer found. Make sure that you have allocated memory for your buffer by calling allocate function in SyclDevice"<< std::endl;
abort();
- //return buffer_map.end();
}
// This function checks if the runtime recorded an error for the
// underlying stream device.
EIGEN_STRONG_INLINE bool ok() const {
+ if (!exception_caught_) {
+ m_queue.throw_asynchronous();
+ }
return !exception_caught_;
}
// destructor