Skip to content

Commit 8bf6d80

Browse files
committed
pytorch: no need to use SANDCASTLE=1 from 2.3.0, it actually causes more problems than it solves.
1 parent 0b5f61d commit 8bf6d80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

easybuild/easyblocks/p/pytorch.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,9 @@ def _set_cache_dir(self):
426426
def test_step(self):
427427
"""Run unit tests"""
428428
self._set_cache_dir()
429-
# Pretend to be on FB CI which disables some tests, especially those which download stuff
430-
env.setvar('SANDCASTLE', '1')
429+
if LooseVersion(self.version) < LooseVersion('2.3.0'):
430+
# Pretend to be on FB CI which disables some tests, especially those which download stuff
431+
env.setvar('SANDCASTLE', '1')
431432
# Skip this test(s) which is very flaky
432433
env.setvar('SKIP_TEST_BOTTLENECK', '1')
433434
# Parse excluded_tests and flatten into space separated string

0 commit comments

Comments
 (0)