mirror of https://github.com/Jittor/Jittor
add updated code
This commit is contained in:
parent
2f37158e3e
commit
b79ac22b05
|
@ -456,7 +456,8 @@ def setup_cutt():
|
|||
|
||||
def install_cutlass(root_folder):
|
||||
# Modified from: https://github.com/ap-hynninen/cutlass
|
||||
url = "https://cloud.tsinghua.edu.cn/f/171e49e5825549548bc4/?dl=1"
|
||||
# url = "https://cloud.tsinghua.edu.cn/f/171e49e5825549548bc4/?dl=1"
|
||||
url = "https://cg.cs.tsinghua.edu.cn/jittor/assets/cutlass.zip"
|
||||
|
||||
filename = "cutlass.zip"
|
||||
fullname = os.path.join(root_folder, filename)
|
||||
|
|
|
@ -572,10 +572,12 @@ void GetitemOp::jit_run() {
|
|||
index_t(vp@d[0 @for(j,0,VD,@if((VS@d>>j)&1, + i@{j+FOV} * vs@d@@s@j,))])
|
||||
, ??? ))))));
|
||||
)
|
||||
@for(d, 0, IDIM, if (iid@d < 0) iid@d += ishape@d;
|
||||
)
|
||||
auto iid = 0 @for(d, 0, IDIM, + iid@d * istride@d);
|
||||
op[oid] = ip[iid];
|
||||
}
|
||||
}
|
||||
#endif // JIT
|
||||
|
||||
} // jittor
|
||||
} // jittor
|
Loading…
Reference in New Issue