Redian新闻
>
为什么两台机器的计算结果不一样?
avatar
为什么两台机器的计算结果不一样?# Computation - 科学计算
n*y
1
一台用compaq的服务器,另一台用AMD的CPU的台式机,
结果完全不一样,any suggestion?
avatar
Ag
2
what kind of compuation?

【在 n**y 的大作中提到】
: 一台用compaq的服务器,另一台用AMD的CPU的台式机,
: 结果完全不一样,any suggestion?

avatar
m*y
3
有限员得计算。
pc是用的fujitsu的FORTRAN compiler.

【在 Ag 的大作中提到】
: what kind of compuation?
avatar
a*s
4
so easy. It must be your problem.haha

【在 n**y 的大作中提到】
: 一台用compaq的服务器,另一台用AMD的CPU的台式机,
: 结果完全不一样,any suggestion?

avatar
h*o
5
马甲暴露了。

【在 m******y 的大作中提到】
: 有限员得计算。
: pc是用的fujitsu的FORTRAN compiler.

avatar
Ag
6
不懂
但是对于很多计算,尤其涉及随机数,不同的结果很正常。
如果是结果多步叠加累积的,时间长了也会diverge。

【在 m******y 的大作中提到】
: 有限员得计算。
: pc是用的fujitsu的FORTRAN compiler.

avatar
a*s
7
我倒

【在 Ag 的大作中提到】
: 不懂
: 但是对于很多计算,尤其涉及随机数,不同的结果很正常。
: 如果是结果多步叠加累积的,时间长了也会diverge。

avatar
sc
8
en,那就是稳定性没做好

【在 Ag 的大作中提到】
: 不懂
: 但是对于很多计算,尤其涉及随机数,不同的结果很正常。
: 如果是结果多步叠加累积的,时间长了也会diverge。

avatar
s*t
9
then how can you trust such results ?

【在 Ag 的大作中提到】
: 不懂
: 但是对于很多计算,尤其涉及随机数,不同的结果很正常。
: 如果是结果多步叠加累积的,时间长了也会diverge。

avatar
Ag
10
even use double precision, you still can't get accurate result
for each step. As a result, gradually, the error will be bigger
and bigger. Different CPUs with various hardwares handle data in
different ways, you get different results, which is quiet normal.

【在 s***t 的大作中提到】
: then how can you trust such results ?
avatar
Ag
11
why dao?

【在 a******s 的大作中提到】
: 我倒
avatar
s*t
12
what i meant was if this happens, either your algorithm is bad, or your
problem is ill-posed. so the results is not meaningful at all.

【在 Ag 的大作中提到】
: even use double precision, you still can't get accurate result
: for each step. As a result, gradually, the error will be bigger
: and bigger. Different CPUs with various hardwares handle data in
: different ways, you get different results, which is quiet normal.

avatar
a*s
13
For you,it maybe normal. But for others,eg. me,it is not normal.:)
How come?

【在 Ag 的大作中提到】
: even use double precision, you still can't get accurate result
: for each step. As a result, gradually, the error will be bigger
: and bigger. Different CPUs with various hardwares handle data in
: different ways, you get different results, which is quiet normal.

avatar
a*s
14
这句话非常象老板说的:),kaka
非常的有意义!

【在 s***t 的大作中提到】
: then how can you trust such results ?
avatar
Ag
15
only if the results are similar, say, in the range of +/-0.5%.
surely it's not acceptable if totally different.
but for 1.23567 and 1.23568, I consider them the same.

【在 s***t 的大作中提到】
: what i meant was if this happens, either your algorithm is bad, or your
: problem is ill-posed. so the results is not meaningful at all.

avatar
S*y
16

compiler-dependent problem?

【在 n**y 的大作中提到】
: 一台用compaq的服务器,另一台用AMD的CPU的台式机,
: 结果完全不一样,any suggestion?

avatar
m*y
17
应该不是!

【在 S***y 的大作中提到】
:
: compiler-dependent problem?

avatar
h*o
18
把问题说详细点吧。
最简单的两种可能
1. endian的问题,big-endian和little-endian上出来的binary data
是不一样的。
2. 数组越界,乱改data...有些compiler和系统对这种情况不报错。
自己慢慢debug吧。

【在 m******y 的大作中提到】
: 应该不是!
avatar
c*n
19
Do you know that your algorithm is absolutely stable, conditionally stable,
not stable?

【在 m******y 的大作中提到】
: 应该不是!
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。