If you have multiple versions of the Intel® oneAPI DPC++ 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 > DPC++ > Compilers .
Use the Selected Compiler drop-down menu to select the appropriate version of the compiler.