DeviceBuffer<AtomPair> d_constraints;
//! Equilibrium distances for the constraints (GPU)
DeviceBuffer<float> d_constraintsTargetLengths;
+ /*! Whether there are coupled constraints.
+ *
+ * In SYCL, the accessors can not be initialized with an empty buffer.
+ * In case there are no coupled constraints, the respective buffers below are
+ * empty. So we need to inform the kernel launcher that these are optional.
+ */
+ bool haveCoupledConstraints = false;
//! Number of constraints, coupled with the current one (GPU)
DeviceBuffer<int> d_coupledConstraintsCounts;
//! List of coupled with the current one (GPU)