mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
Fix rank>0 thread exiting during SparseGP multiprocessing (#731)
If you run mpiexec -n 2 on any code to try to use MPI multiprocessing for SparseGPRegression, it crashes (see #618) because the rank>1 processes do not have ret defined.
This commit is contained in:
parent
bb1bc50886
commit
0a9893e839
1 changed files with 1 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ class SparseGP_MPI(SparseGP):
|
|||
raise
|
||||
self._fail_count += 1
|
||||
elif flag==-1:
|
||||
ret = None
|
||||
break
|
||||
else:
|
||||
self._IN_OPTIMIZATION_ = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue