mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 04:22:38 +02:00
Minor doc changes, fixed MPI dependency and 'stop' in var_dtc
This commit is contained in:
parent
3eb2fa3a8f
commit
13fd45e31f
11 changed files with 74 additions and 374 deletions
|
|
@ -167,7 +167,7 @@ class VarDTC(LatentFunctionInference):
|
|||
woodbury_vector = Cpsi1Vf # == Cpsi1V
|
||||
else:
|
||||
print 'foobar'
|
||||
stop
|
||||
import ipdb; ipdb.set_trace()
|
||||
psi1V = np.dot(Y.T*beta, psi1).T
|
||||
tmp, _ = dtrtrs(Lm, psi1V, lower=1, trans=0)
|
||||
tmp, _ = dpotrs(LB, tmp, lower=1)
|
||||
|
|
|
|||
|
|
@ -4,11 +4,10 @@ The module of tools for parallelization (MPI)
|
|||
|
||||
try:
|
||||
from mpi4py import MPI
|
||||
def get_id_within_node(comm=MPI.COMM_WORLD):
|
||||
rank = comm.rank
|
||||
nodename = MPI.Get_processor_name()
|
||||
nodelist = comm.allgather(nodename)
|
||||
return len([i for i in nodelist[:rank] if i==nodename])
|
||||
except:
|
||||
pass
|
||||
|
||||
def get_id_within_node(comm=MPI.COMM_WORLD):
|
||||
rank = comm.rank
|
||||
nodename = MPI.Get_processor_name()
|
||||
nodelist = comm.allgather(nodename)
|
||||
return len([i for i in nodelist[:rank] if i==nodename])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue