@@ -62,7 +62,7 @@ def build_gmmlib(self, repo, commit):
6262 f"-DCMAKE_BUILD_TYPE=Release" ,
6363 ]
6464 run (configure_command )
65- run (f"cmake --build { self .gmmlib_build } -j" )
65+ run (f"cmake --build { self .gmmlib_build } -j { options . build_jobs } " )
6666 run (f"cmake --install { self .gmmlib_build } " )
6767 return self .gmmlib_install
6868
@@ -87,7 +87,7 @@ def build_level_zero(self, repo, commit):
8787 f"-DCMAKE_BUILD_TYPE=Release" ,
8888 ]
8989 run (configure_command )
90- run (f"cmake --build { self .level_zero_build } -j" )
90+ run (f"cmake --build { self .level_zero_build } -j { options . build_jobs } " )
9191 run (f"cmake --install { self .level_zero_build } " )
9292 return self .level_zero_install
9393
@@ -142,8 +142,8 @@ def build_igc(self, repo, commit):
142142 ]
143143 run (configure_command )
144144
145- # set timeout to 30min . IGC takes A LONG time to build if building from scratch.
146- run (f"cmake --build { self .igc_build } -j" , timeout = 600 * 3 )
145+ # set timeout to 2h . IGC takes A LONG time to build if building from scratch.
146+ run (f"cmake --build { self .igc_build } -j { options . build_jobs } " , timeout = 60 * 60 * 2 )
147147 # cmake --install doesn't work...
148148 run ("make install" , cwd = self .igc_build )
149149 return self .igc_install
@@ -214,7 +214,7 @@ def build_compute_runtime(self):
214214 configure_command .append (f"-DIGC_DIR={ self .igc } " )
215215
216216 run (configure_command )
217- run (f"cmake --build { self .compute_runtime_build } -j" )
217+ run (f"cmake --build { self .compute_runtime_build } -j { options . build_jobs } " )
218218 return self .compute_runtime_build
219219
220220
0 commit comments