If you have multiple versions of the Intel® oneAPI DPC++/C++ Compiler installed, you can select which version you want from the Compiler Selection dialog box:
Select a project, then go to Tools > Options > Intel Compilers and Libraries > <compiler> > Compilers. The <compiler> values are C++ or DPC++.
Use the Selected Compiler drop-down menu to select the appropriate version of the compiler.