Substituting $x=y+\dfrac{1}{2}$ in the equation we obtain an equation in $y$:
$8y^4+4y^2+a-\dfrac{3}{2}=0$
Using the transformation $z=y^2$, we get a quadratic equation in $z$:
$8z^2+4z+a-\dfrac{3}{2}=0$
The discriminant of this equation is $32(2-a)$, which is non-negative if and only if $a\le 2$. For $a\le 2$, we obtain the roots
$z_1=\dfrac{-1+\sqrt{2(2-a)}}{4},\,z_2=\dfrac{-1-\sqrt{2(2-a)}}{4}$
For getting real $y$ we need $z\ge 0$. Obviously $z_2<0$ and hence it gives only non-real values of $y$. But $z_1\ge 0$ if and only if $a\le \dfrac{3}{2}$. In this case we obtain two real values for $y$ and hence two real roots for the original equation.
Thus we conclude that there are two real roots and two non-real roots for $a\le \dfrac{3}{2}$ and four non-real roots for $a>\dfrac{3}{2}$.
Obviously the sum of all the roots of the equation is 2. For $a\le \dfrac{3}{2}$. two real roots of $8y^4+4y^2+a-\dfrac{3}{2}=0$ are given by $y_1=\sqrt{z_1}$ and $y_2=-\sqrt{z_1}$. Hence the sum of real roots of the original equation is given by $y_1+\dfrac{1}{2}+y_2+\dfrac{1}{2}$ which reduces to 1. It follows the sum of the non-real roots of (1) for $a\le \dfrac{3}{2}$ is also 1. Thus,
$
\text{The sum of non-real roots} =
\begin{cases}
1 & \text{for $a \le \dfrac{3}{2}$} \\
2 & \text{for $a<\dfrac{3}{2}$} \\
\end{cases}$