Skip to content

Commit

Permalink
limit number of openmp threads
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbern committed Jul 21, 2015
1 parent 6ca2980 commit b54a847
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ann_benchmarks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
print('resetting memory limit from', soft, 'to', memory_limit)
resource.setrlimit(resource.RLIMIT_DATA, (memory_limit, hard))

os.environ['OMP_THREAD_LIMIT'] = '1' # just to limit number of processors

class BaseANN(object):
pass
Expand Down

0 comments on commit b54a847

Please sign in to comment.