@@ -97,21 +97,7 @@ def setup_linux_runtime() -> None:
9797 run (["sudo" , "apt-get" , "update" ])
9898 run (["sudo" , "apt-get" , "install" , "-y" , "intel-oneapi-runtime-opencl" ])
9999
100- gcc_shim_dir = Path (require_env ("RUNNER_TEMP" )) / "gcc-13-shim"
101- gcc_shim_dir .mkdir (parents = True , exist_ok = True )
102- for link_name , target in (
103- ("gcc" , "/usr/bin/gcc-13" ),
104- ("g++" , "/usr/bin/g++-13" ),
105- ("cc" , "/usr/bin/gcc-13" ),
106- ("c++" , "/usr/bin/g++-13" ),
107- ):
108- link_path = gcc_shim_dir / link_name
109- if link_path .exists () or link_path .is_symlink ():
110- link_path .unlink ()
111- link_path .symlink_to (target )
112-
113- current_path = os .environ .get ("PATH" , "" )
114- write_env ("PATH" , f"{ gcc_shim_dir } :{ current_path } " if current_path else str (gcc_shim_dir ))
100+ write_env ("ITLABAI_GCC_INSTALL_DIR" , "/usr/lib/gcc/x86_64-linux-gnu/13" )
115101
116102 icd_dir = Path (require_env ("RUNNER_TEMP" )) / "intel-opencl-icd"
117103 icd_dir .mkdir (parents = True , exist_ok = True )
0 commit comments