Skip to content

Commit

Permalink
More conservative memory allocation.
Browse files Browse the repository at this point in the history
Signed-off by: David Rowenhorst <[email protected]>
  • Loading branch information
drowenhorst-nrl committed Jun 6, 2024
1 parent 3a73165 commit 323a802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyebsdindex/nlpar.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@


if _ray_installed and _pyopencl_installed:
from pyebsdindex.opencl.nlpar_cl import NLPAR
from pyebsdindex.opencl.nlpar_clray import NLPAR
elif _pyopencl_installed and not _ray_installed:
from pyebsdindex.opencl.nlpar_cl import NLPAR
else:
Expand Down
2 changes: 1 addition & 1 deletion pyebsdindex/opencl/nlpar_clray.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def calcnlpar_clray(self, searchradius=None, lam = None, dthresh = None, saturat
rescale = rescale,
gpu_id= gpu_id)

target_mem = clparams.gpu[gpu_id].max_mem_alloc_size//3
target_mem = clparams.gpu[gpu_id].max_mem_alloc_size//4
max_mem = clparams.gpu[gpu_id].global_mem_size*0.4
if target_mem*ngpuwrker > max_mem:
target_mem = max_mem/ngpuwrker
Expand Down

0 comments on commit 323a802

Please sign in to comment.