Step 1: Find the critical points.
Given,
\[
f(x)=2x^3-2-3ax^2-12a^2x.
\]
Differentiating,
\[
f'(x)=6x^2-6ax-12a^2
=6(x-2a)(x+a).
\]
Hence, the critical points are
\[
x=2a,\qquad x=-a.
\]
Step 2: Identify the local maximum point.
Again,
\[
f''(x)=12x-6a.
\]
At
\[
x=-a,
\]
\[
f''(-a)=-18a<0
\]
since
\[
a>0.
\]
Hence, the local maximum occurs at
\[
x=-a.
\]
Step 3: Use the given maximum value.
Now,
\[
f(-a)
=
2(-a^3-1)-3a(-a)(3a)
=
-2a^3-2+9a^3
=
7a^3-2.
\]
Given,
\[
7a^3-2=54.
\]
Therefore,
\[
7a^3=56,
\]
\[
a^3=8,
\]
\[
a=2.
\]
Hence,
\[
\boxed{2}.
\]
Thus,
\[
\boxed{(B)}
\]
is the correct answer.