forked from jittor/jittor
Merge branch 'master' of github.com:Jittor/jittor
This commit is contained in:
commit
9ab20a5536
|
@ -9,7 +9,7 @@
|
|||
# file 'LICENSE.txt', which is part of this source code package.
|
||||
# ***************************************************************
|
||||
|
||||
__version__ = '1.2.3.103'
|
||||
__version__ = '1.2.3.104'
|
||||
from jittor_utils import lock
|
||||
with lock.lock_scope():
|
||||
ori_int = int
|
||||
|
|
|
@ -47,6 +47,7 @@ void NcclBroadcastOp::jit_run() {
|
|||
@if(@strcmp(@Tx,int)==0 || @strcmp(@Tx,int32)==0, ncclInt)
|
||||
@if(@strcmp(@Tx,float64)==0, ncclFloat64)
|
||||
@if(@strcmp(@Tx,int64)==0, ncclInt64)
|
||||
@if(@strcmp(@Tx,uint8)==0, ncclUint8)
|
||||
)
|
||||
auto* __restrict__ xp = x->ptr<Tx>();
|
||||
auto* __restrict__ yp = y->ptr<Tx>();
|
||||
|
|
|
@ -60,6 +60,7 @@ void MpiBroadcastOp::jit_run() {
|
|||
@if(@strcmp(@Tx,int)==0 || @strcmp(@Tx,int32)==0, MPI_INT)
|
||||
@if(@strcmp(@Tx,float64)==0 || @strcmp(@Tx,double)==0, MPI_DOUBLE)
|
||||
@if(@strcmp(@Tx,int64)==0, MPI_DOUBLE_INT)
|
||||
@if(@strcmp(@Tx,uint8)==0, MPI_CHAR)
|
||||
)
|
||||
auto* __restrict__ yp = y->ptr<Tx>();
|
||||
MPI_Bcast(yp, y->num, T_MPI, root, MPI_COMM_WORLD);
|
||||
|
|
Loading…
Reference in New Issue