Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
cc4s
Cyclops Tensor Framework
Commits
87c1946e
Commit
87c1946e
authored
9 years ago
by
Edgar Solomonik
Browse files
Options
Download
Email Patches
Plain Diff
cosmetic changes to pass printfs
parent
835718c5
master
dryrun
feature/cray
v1.35
v1.34
v1.33
v1.32
v1.31
v1.30
v1.23
v1.22
v1.5.5
v1.5.4
v1.5.3
v1.5.2
v1.5.1
v1.5.0
v1.4.2
v1.4.1
v1.4.0
v1.3.5
v1.3.4
v1.3.3
v1.3.2
v1.3.1
v1.3.0
v1.2.3
v1.2.2
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
12 deletions
+12
-12
test/diag_ctr.cxx
test/diag_ctr.cxx
+2
-2
test/diag_sym.cxx
test/diag_sym.cxx
+1
-1
test/multi_tsr_sym.cxx
test/multi_tsr_sym.cxx
+2
-2
test/readall_test.cxx
test/readall_test.cxx
+2
-2
test/repack.cxx
test/repack.cxx
+3
-3
test/sy_times_ns.cxx
test/sy_times_ns.cxx
+2
-2
No files found.
test/diag_ctr.cxx
View file @
87c1946e
...
...
@@ -50,10 +50,10 @@ int diag_ctr(int n,
pass
=
0
;
if
(
pass
){
if
(
rank
==
0
)
printf
(
"{sum(ai)A[
\"
aiai
\"
]=sum(ai)mA[
\"
ai
\"
]} passed
\n
"
);
printf
(
"{
sum(ai)A[
\"
aiai
\"
]=sum(ai)mA[
\"
ai
\"
]
} passed
\n
"
);
}
else
{
if
(
rank
==
0
)
printf
(
"{sum(ai)A[
\"
aiai
\"
]=sum(ai)mA[
\"
ai
\"
]} failed
\n
"
);
printf
(
"{
sum(ai)A[
\"
aiai
\"
]=sum(ai)mA[
\"
ai
\"
]
} failed
\n
"
);
}
...
...
This diff is collapsed.
Click to expand it.
test/diag_sym.cxx
View file @
87c1946e
...
...
@@ -56,7 +56,7 @@ int diag_sym(int n,
if
(
norm
<
1.E-10
){
pass
=
1
;
if
(
rank
==
0
)
printf
(
"{(A[
\"
(ab)(ij)
\"
]=mA[
\"
ii
\"
]-mB[
\"
aa
\"
]=mA[
\"
jj
\"
]-mB[
\"
bb
\"
]} passed
\n
"
);
printf
(
"{
(A[
\"
(ab)(ij)
\"
]=mA[
\"
ii
\"
]-mB[
\"
aa
\"
]=mA[
\"
jj
\"
]-mB[
\"
bb
\"
]
} passed
\n
"
);
}
else
{
pass
=
0
;
if
(
rank
==
0
)
...
...
This diff is collapsed.
Click to expand it.
test/multi_tsr_sym.cxx
View file @
87c1946e
...
...
@@ -49,9 +49,9 @@ int multi_tsr_sym(int m,
double
err
=
diff
.
norm2
();
if
(
rank
==
0
){
if
(
err
<
1.E-6
)
printf
(
"{ A[
\"
ik
\"
]*A[
\"
jk
\"
] = C_NS[
\"
ij
\"
] = C_AS[
\"
ij
\"
] passed.
\n
"
);
printf
(
"{ A[
\"
ik
\"
]*A[
\"
jk
\"
] = C_NS[
\"
ij
\"
] = C_AS[
\"
ij
\"
]
}
passed.
\n
"
);
else
printf
(
"{ A[
\"
ik
\"
]*A[
\"
jk
\"
] = C_NS[
\"
ij
\"
] = C_AS[
\"
ij
\"
] failed!
\n
"
);
printf
(
"{ A[
\"
ik
\"
]*A[
\"
jk
\"
] = C_NS[
\"
ij
\"
] = C_AS[
\"
ij
\"
]
}
failed!
\n
"
);
}
return
err
<
1.E-6
;
...
...
This diff is collapsed.
Click to expand it.
test/readall_test.cxx
View file @
87c1946e
...
...
@@ -67,10 +67,10 @@ int readall_test(int n,
if
(
pass
){
if
(
rank
==
0
)
printf
(
"{sum(ai)A[
\"
aiai
\"
]=sum(ai)mA[
\"
ai
\"
]} passed
\n
"
);
printf
(
"{
sum(ai)A[
\"
aiai
\"
]=sum(ai)mA[
\"
ai
\"
]
} passed
\n
"
);
}
else
{
if
(
rank
==
0
)
printf
(
"{sum(ai)A[
\"
aiai
\"
]=sum(ai)mA[
\"
ai
\"
]} failed
\n
"
);
printf
(
"{
sum(ai)A[
\"
aiai
\"
]=sum(ai)mA[
\"
ai
\"
]
} failed
\n
"
);
}
...
...
This diff is collapsed.
Click to expand it.
test/repack.cxx
View file @
87c1946e
...
...
@@ -47,7 +47,7 @@ int repack(int n,
pass
=
0
;
if
(
!
pass
)
printf
(
"{NS -> SY repack} failed
\n
"
);
printf
(
"{
NS -> SY repack
} failed
\n
"
);
else
{
Tensor
<>
Anur
(
As
,
shapeN4
);
Tensor
<>
Asur
(
As
,
shapeN4
);
...
...
@@ -60,11 +60,11 @@ int repack(int n,
if
(
norm
<
1.E-6
){
pass
=
1
;
if
(
rank
==
0
)
printf
(
"{NS -> SY -> NS repack} passed
\n
"
);
printf
(
"{
NS -> SY -> NS repack
} passed
\n
"
);
}
else
{
pass
=
0
;
if
(
rank
==
0
)
printf
(
"{SY -> NS repack} failed
\n
"
);
printf
(
"{
SY -> NS repack
} failed
\n
"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
test/sy_times_ns.cxx
View file @
87c1946e
...
...
@@ -61,11 +61,11 @@ int sy_times_ns(int n,
if
(
norm
<
1.E-10
){
pass
=
1
;
if
(
rank
==
0
)
printf
(
"{C[\(ij)
\"
]=A[
\"
(ij)
\"
]*B[
\"
ijkl
\"
]} passed
\n
"
);
printf
(
"{
C[\(ij)
\"
]=A[
\"
(ij)
\"
]*B[
\"
ijkl
\"
]
} passed
\n
"
);
}
else
{
pass
=
0
;
if
(
rank
==
0
)
printf
(
"{C[\(ij)
\"
]=A[
\"
(ij)
\"
]*B[
\"
ijkl
\"
]} failed
\n
"
);
printf
(
"{
C[\(ij)
\"
]=A[
\"
(ij)
\"
]*B[
\"
ijkl
\"
]
} failed
\n
"
);
}
return
pass
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment