提交 e40ad6b7 authored 作者: Alexander Matyasko's avatar Alexander Matyasko

Remove redundant check for triu/l_kernels

上级 bb125436
......@@ -9,10 +9,8 @@ KERNEL void tril_kernel(const ga_size nthreads, const ga_size ncols,
index += LDIM_0 * GDIM_0) {
unsigned int ix = index / ncols;
unsigned int iy = index % ncols;
if (index < nthreads) {
if (ix < iy) {
a[index] = 0.0;
}
if (ix < iy) {
a[index] = 0.0;
}
}
}
......@@ -26,10 +24,8 @@ KERNEL void triu_kernel(const ga_size nthreads, const ga_size ncols,
index += LDIM_0 * GDIM_0) {
unsigned int ix = index / ncols;
unsigned int iy = index % ncols;
if (index < nthreads) {
if (ix > iy) {
a[index] = 0.0;
}
if (ix > iy) {
a[index] = 0.0;
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论