A strange case (different CPU but same matlab version, different calculated results)
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi all,
Have there anyone encountered such a strange situation? Different CPUs calculate different results, I mean "0" value, one CPU calculates 10^-10 orders of magnitude, another 10^-19 orders of magnitude, they are the same, right? But after some of the same operations, the final result can be very different.
Note that the matlab version is the same on both CPUs and the code is the same.
댓글 수: 7
Walter Roberson
2022년 7월 6일
Given the same MATLAB version and the same kind of processor, the number of processors or order of parfor loops should not make a difference to the final result, unless
- you are doing I/O to a device
- you are using GPU and have a device selection going on
- you are using a "reduction variable"
- you are using parpool data queues and doing something with the data values
- you have configured your local pool to permit more than one thread per worker
On the other hand, in non-parallel regions, the results of calling into the high speed libraries can potentially depend upon the number of processors or cache details for the processors.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!