Skip to content

Commit

Permalink
temp: Setup higher nproc because of the number of threads blas needs.
Browse files Browse the repository at this point in the history
  • Loading branch information
feanil committed Oct 17, 2024
1 parent 2ff9732 commit 9b3d5b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion codejail/safe_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# Flags to let developers temporarily change some behavior in this file.

# Set this to True to log all the code and globals being executed.
LOG_ALL_CODE = False
LOG_ALL_CODE = True
# Set this to True to use the unsafe code, so that you can debug it.
ALWAYS_BE_UNSAFE = False

Expand Down
1 change: 1 addition & 0 deletions codejail/tests/test_safe_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def test_printing_stuff_when_you_shouldnt(self):

def test_importing_lots_of_crap(self):
set_limit('REALTIME', 10)
set_limit('NPROC', 20)
globs = {}
self.safe_exec(textwrap.dedent("""\
from numpy import *
Expand Down

0 comments on commit 9b3d5b4

Please sign in to comment.