File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ def setup_linux_runtime() -> None:
5858 "g++-13" ,
5959 "gcc-13" ,
6060 "git" ,
61- "libomp-dev" ,
6261 "ocl-icd-opencl-dev" ,
6362 "opencl-headers" ,
6463 "python3" ,
@@ -200,15 +199,13 @@ def setup_unix_compilers(sycl_root: Path) -> None:
200199 if openmp_library is None :
201200 main_error ("Unable to locate libiomp5.so for the SYCL toolchain" )
202201
203- search_roots = [
204- Path (capture ([str (cxx_path ), "-print-resource-dir" ])),
205- sycl_root ,
206- Path ("/opt/intel/oneapi" ),
207- ]
208- search_roots .extend (Path ("/usr/lib" ).glob ("llvm-*" ))
209- openmp_header = find_file (search_roots , "omp.h" )
210- if openmp_header is None :
211- main_error ("Unable to locate omp.h for the SYCL toolchain" )
202+ 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 ():
205+ main_error (
206+ "Unable to locate compiler-provided omp.h under "
207+ f"{ resource_dir / 'include' } "
208+ )
212209
213210 write_env ("ITLABAI_OPENMP_FLAGS" , "-fopenmp=libiomp5" )
214211 write_env ("ITLABAI_OPENMP_LIBRARY" , str (openmp_library ))
You can’t perform that action at this time.
0 commit comments