Skip to content

Commit

Permalink
Force single-threaded for Numba stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jadball committed Nov 5, 2024
1 parent 7016ac5 commit 20fca52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ImageD11/nbGui/TDXRD/3_3DXRD_look_at_peaks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
},
"outputs": [],
"source": [
"import os\n",
"\n",
"os.environ['OMP_NUM_THREADS'] = '1'\n",
"os.environ['OPENBLAS_NUM_THREADS'] = '1'\n",
"os.environ['MKL_NUM_THREADS'] = '1'\n",
"\n",
"exec(open('/data/id11/nanoscope/install_ImageD11_from_git.py').read())\n",
"PYTHONPATH = setup_ImageD11_from_git( ) # ( os.path.join( os.environ['HOME'],'Code'), 'ImageD11_git' )"
]
Expand Down

0 comments on commit 20fca52

Please sign in to comment.