parallel block in algorithm overleaf

One part of my algorithm is done in parallel, for that, I have a block in my algorithm, but I can not show it properly. Can anybody help me to solve this problem?

\usepackage[linesnumbered,lined,boxed,commentsnumbered,ruled,longend]{algorithm2e}
\begin{document}
\begin{algorithm}[!t]
\DontPrintSemicolon
\SetKwBlock{DoParallel}{do in parallel}{end}

\begin{algorithmic}[1]
\STATE \DoParallel{
\FOR{ $1\leq i \leq Epoch$}
\STATE Do the
\ENDFOR
\FOR{ $1\leq i \leq Epoch$}
\STATE Do the 1;
\ENDFOR}
\end{algorithmic}\label{}
\end{algorithm}
\end{document}


Any other response which is related to the parallel in the algorithm is appreciated.

• Looks like you are mixing two different packages for algorithms, but it's hard to tell, what is going on, since your code doesn't compile – DG' Oct 23 at 11:52

You are mixing (at least) two different packages for typesetting algorithms. I suggest, you stick to one of them:

\documentclass{article}
\begin{document}
\begin{algorithm}[!t]
\DontPrintSemicolon
\SetKwBlock{DoParallel}{do in parallel}{end}
\DoParallel{
\For{$1\leq i \leq$ Epoch}{
Do the
}
\For{$1\leq i \leq$ Epoch}{
Do the 1;
}
}
\end{algorithm}\label{oursmc}
\end{document}