Skip to content

Commit

Permalink
pytorch: no need to use SANDCASTLE=1 from 2.3.0, it actually causes m…
Browse files Browse the repository at this point in the history
…ore problems than it solves.
  • Loading branch information
akesandgren committed May 15, 2024
1 parent 0b5f61d commit 8bf6d80
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions easybuild/easyblocks/p/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,9 @@ def _set_cache_dir(self):
def test_step(self):
"""Run unit tests"""
self._set_cache_dir()
# Pretend to be on FB CI which disables some tests, especially those which download stuff
env.setvar('SANDCASTLE', '1')
if LooseVersion(self.version) < LooseVersion('2.3.0'):
# Pretend to be on FB CI which disables some tests, especially those which download stuff
env.setvar('SANDCASTLE', '1')
# Skip this test(s) which is very flaky
env.setvar('SKIP_TEST_BOTTLENECK', '1')
# Parse excluded_tests and flatten into space separated string
Expand Down

0 comments on commit 8bf6d80

Please sign in to comment.