For the default value of --sycl-compiler-prefix option to develop/install setup commands we require ONEAPI_ROOT and do not set DPCTL_CUSTOM_DPCPP_INSTALL_DIR.
The logic is all built assuming that setting DPCTL_CUSTOM_DPCPP_INSTALL_DIR signals use of custom-built DPC++ toolchain.
When oneAPI compiler bits are installed into Python environment, we can not use ONEAPI_ROOT, since compiler's location is no longer ${ONEAPI_ROOT}/compiler/latest/linux but ${CONDA_PREFIX} instead, and must rely on --sycl-compiler-prefix which sets DPCTL_CUSTOM_DPCPP_INSTALL_DIR and CMake script starts assuming that we build with OS DPC++ toolchain.
@AndresGuzman-Ballen
For the default value of
--sycl-compiler-prefixoption todevelop/installsetup commands we requireONEAPI_ROOTand do not setDPCTL_CUSTOM_DPCPP_INSTALL_DIR.The logic is all built assuming that setting
DPCTL_CUSTOM_DPCPP_INSTALL_DIRsignals use of custom-built DPC++ toolchain.When oneAPI compiler bits are installed into Python environment, we can not use
ONEAPI_ROOT, since compiler's location is no longer${ONEAPI_ROOT}/compiler/latest/linuxbut${CONDA_PREFIX}instead, and must rely on--sycl-compiler-prefixwhich setsDPCTL_CUSTOM_DPCPP_INSTALL_DIRand CMake script starts assuming that we build with OS DPC++ toolchain.@AndresGuzman-Ballen