This repository was archived by the owner on Jul 22, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -200,11 +200,17 @@ def setup_unix_compilers(sycl_root: Path) -> None:
200200 main_error ("Unable to locate libiomp5.so for the SYCL toolchain" )
201201
202202 resource_dir = Path (capture ([str (cxx_path ), "-print-resource-dir" ]))
203- openmp_header = resource_dir / "include" / "omp.h"
204- if not openmp_header .is_file ():
203+ openmp_header = find_file (
204+ [
205+ resource_dir / "include" ,
206+ sycl_root ,
207+ Path ("/opt/intel/oneapi" ),
208+ ],
209+ "omp.h" ,
210+ )
211+ if openmp_header is None :
205212 main_error (
206- "Unable to locate compiler-provided omp.h under "
207- f"{ resource_dir / 'include' } "
213+ "Unable to locate Intel-provided omp.h under the SYCL toolchain"
208214 )
209215
210216 write_env ("ITLABAI_OPENMP_FLAGS" , "-fopenmp=libiomp5" )
You can’t perform that action at this time.
0 commit comments