@@ -172,6 +172,8 @@ def _maybe_compile(fn, compile, td, fullgraph=FULLGRAPH, warmup=3):
172172def test_dqn_speed (
173173 benchmark , backward , compile , n_obs = 8 , n_act = 4 , depth = 3 , ncells = 128 , batch = 128
174174):
175+ if compile == "reduce-overhead" and backward is not None :
176+ pytest .skip ("reduce-overhead with backward causes segfaults in CI" )
175177 if compile :
176178 torch ._dynamo .reset_code_caches ()
177179 device = torch .device ("cuda:0" if torch .cuda .is_available () else "cpu" )
@@ -227,6 +229,8 @@ def loss_and_bw(td):
227229def test_ddpg_speed (
228230 benchmark , backward , compile , n_obs = 8 , n_act = 4 , ncells = 128 , batch = 128 , n_hidden = 64
229231):
232+ if compile == "reduce-overhead" and backward is not None :
233+ pytest .skip ("reduce-overhead with backward causes segfaults in CI" )
230234 if compile :
231235 torch ._dynamo .reset_code_caches ()
232236 device = torch .device ("cuda:0" if torch .cuda .is_available () else "cpu" )
@@ -303,6 +307,8 @@ def loss_and_bw(td):
303307def test_sac_speed (
304308 benchmark , backward , compile , n_obs = 8 , n_act = 4 , ncells = 128 , batch = 128 , n_hidden = 64
305309):
310+ if compile == "reduce-overhead" and backward is not None :
311+ pytest .skip ("reduce-overhead with backward causes segfaults in CI" )
306312 if compile :
307313 torch ._dynamo .reset_code_caches ()
308314 device = torch .device ("cuda:0" if torch .cuda .is_available () else "cpu" )
@@ -393,6 +399,8 @@ def loss_and_bw(td):
393399def test_redq_speed (
394400 benchmark , backward , compile , n_obs = 8 , n_act = 4 , ncells = 128 , batch = 128 , n_hidden = 64
395401):
402+ if compile == "reduce-overhead" and backward is not None :
403+ pytest .skip ("reduce-overhead with backward causes segfaults in CI" )
396404 if compile :
397405 torch ._dynamo .reset_code_caches ()
398406 device = torch .device ("cuda:0" if torch .cuda .is_available () else "cpu" )
@@ -484,6 +492,8 @@ def loss_and_bw(td):
484492def test_redq_deprec_speed (
485493 benchmark , backward , compile , n_obs = 8 , n_act = 4 , ncells = 128 , batch = 128 , n_hidden = 64
486494):
495+ if compile == "reduce-overhead" and backward is not None :
496+ pytest .skip ("reduce-overhead with backward causes segfaults in CI" )
487497 if compile :
488498 torch ._dynamo .reset_code_caches ()
489499 device = torch .device ("cuda:0" if torch .cuda .is_available () else "cpu" )
@@ -573,6 +583,8 @@ def loss_and_bw(td):
573583def test_td3_speed (
574584 benchmark , backward , compile , n_obs = 8 , n_act = 4 , ncells = 128 , batch = 128 , n_hidden = 64
575585):
586+ if compile == "reduce-overhead" and backward is not None :
587+ pytest .skip ("reduce-overhead with backward causes segfaults in CI" )
576588 if compile :
577589 torch ._dynamo .reset_code_caches ()
578590 device = torch .device ("cuda:0" if torch .cuda .is_available () else "cpu" )
@@ -667,6 +679,8 @@ def loss_and_bw(td):
667679def test_cql_speed (
668680 benchmark , backward , compile , n_obs = 8 , n_act = 4 , ncells = 128 , batch = 128 , n_hidden = 64
669681):
682+ if compile == "reduce-overhead" and backward is not None :
683+ pytest .skip ("reduce-overhead with backward causes segfaults in CI" )
670684 if compile :
671685 torch ._dynamo .reset_code_caches ()
672686 device = torch .device ("cuda:0" if torch .cuda .is_available () else "cpu" )
@@ -763,6 +777,8 @@ def test_a2c_speed(
763777 batch = 128 ,
764778 T = 10 ,
765779):
780+ if compile == "reduce-overhead" and backward is not None :
781+ pytest .skip ("reduce-overhead with backward causes segfaults in CI" )
766782 if compile :
767783 torch ._dynamo .reset_code_caches ()
768784 device = torch .device ("cuda:0" if torch .cuda .is_available () else "cpu" )
@@ -866,6 +882,8 @@ def test_ppo_speed(
866882 batch = 128 ,
867883 T = 10 ,
868884):
885+ if compile == "reduce-overhead" and backward is not None :
886+ pytest .skip ("reduce-overhead with backward causes segfaults in CI" )
869887 if compile :
870888 torch ._dynamo .reset_code_caches ()
871889 device = torch .device ("cuda:0" if torch .cuda .is_available () else "cpu" )
@@ -969,6 +987,8 @@ def test_reinforce_speed(
969987 batch = 128 ,
970988 T = 10 ,
971989):
990+ if compile == "reduce-overhead" and backward is not None :
991+ pytest .skip ("reduce-overhead with backward causes segfaults in CI" )
972992 if compile :
973993 torch ._dynamo .reset_code_caches ()
974994 device = torch .device ("cuda:0" if torch .cuda .is_available () else "cpu" )
@@ -1072,6 +1092,8 @@ def test_iql_speed(
10721092 batch = 128 ,
10731093 T = 10 ,
10741094):
1095+ if compile == "reduce-overhead" and backward is not None :
1096+ pytest .skip ("reduce-overhead with backward causes segfaults in CI" )
10751097 if compile :
10761098 torch ._dynamo .reset_code_caches ()
10771099 device = torch .device ("cuda:0" if torch .cuda .is_available () else "cpu" )
0 commit comments