Skip to content

Ztrmm fails on Nehalem #33

Closed
Closed

Description

@krefson

This is a report of an issue I reported with GotoBLAS some time ago - but unfortunately just after Kasishige left.

GotoBLAS gave wrong results (result arrays filled with zeroes) for a ztrmm call specificall and only on
Nehalem processors using the Nehalem-specific versions. Versions compiled for Penryn give correct results
on Nehalem. I see nothing in the bug or fix reports to suggest that this has been fixed yet in OpenBLAS.

----------original message-------------------------------------------------
I have just succeeded in tracking down the cause of a failure of our
electronic structure code CASTEP on some new Nehalem processors. It
seems that the Nehalem-specific ZTRMM code contains a bug.

With GotoBLAS 2.13 compiled with FC=ifort USE_THREAD=0 DYNAMIC_ARCH=1

the attached test case (same executable) has the following behaviour

a) On AMD Opteron - success
b) On Intel Core 2 Q6600 - success
c) On Intel Nehalem E5530 - Fails

The (attached) output file shows that the result is filled with zeros
outside the (252x5) leading block.

-----------------------Testcase------------------------------------------------------
Hmm. I can not find a mechanism to attach the testcase in Github. It can be picked up from

ftp://ftp.nd.rl.ac.uk:/scratch/KeithRefson/ztrmm-nehalem-fail.tgz

Activity

  1. xianyi commented on Jun 1, 2011

    @xianyi
    Collaborator

    Hi Krefson,

    Yes, we didn't modify the ztrmm codes on Nehalem. We will investigate this
    issue.
    Could you send me some test codes to reproduce this bug?

    Thanks

    Xianyi Zhang

    2011/6/1 krefson <
    reply@reply.github.com>

    This is a report of an issue I reported with GotoBLAS some time ago - but
    unfortunately just after Kasishige left.

    GotoBLAS gave wrong results (result arrays filled with zeroes) for a ztrmm
    call specificall and only on
    Nehalem processors using the Nehalem-specific versions. Versions compiled
    for Penryn give correct results
    on Nehalem. I see nothing in the bug or fix reports to suggest that this
    has been fixed yet in OpenBLAS.

    ----------original message-------------------------------------------------
    I have just succeeded in tracking down the cause of a failure of our
    electronic structure code CASTEP on some new Nehalem processors. It
    seems that the Nehalem-specific ZTRMM code contains a bug.

    With GotoBLAS 2.13 compiled with FC=ifort USE_THREAD=0 DYNAMIC_ARCH=1

    the attached test case (same executable) has the following behaviour

    a) On AMD Opteron - success
    b) On Intel Core 2 Q6600 - success
    c) On Intel Nehalem E5530 - Fails

    The (attached) output file shows that the result is filled with zeros
    outside the (252x5) leading block.

    Reply to this email directly or view it on GitHub:
    #33

  2. ghost assigned on Jun 1, 2011
  3. krefson commented on Jun 1, 2011

    @krefson
    Author

    You may download the testcase from

    ftp://ftp.nd.rl.ac.uk:/scratch/KeithRefson/ztrmm-nehalem-fail.tgz
    

    Just link the two Fortran files tigether with BLAS and run. This runs both the BLAS and Fortran versions of ztrmm and compares the result internally and prints a success or fail message depending on whether the results compare equal.

    I see failures on
    Intel(R) Xeon(R) CPU E5530 @ 2.40GHz
    Intel(R) Xeon(R) CPU E5520 @ 2.27GHz

    but success on
    Intel(R) Xeon(R) CPU X5660 @ 2.80GHz
    Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz

  4. xianyi commented on Jun 1, 2011

    @xianyi
    Collaborator

    Hi Krefson,

    Thank you for the testcase.

    Xianyi

    You may download the testcase from

     ftp://ftp.nd.rl.ac.uk:/scratch/KeithRefson/ztrmm-nehalem-fail.tgz
    

    Just link the two Fortran files tigether with BLAS and run. This runs both the BLAS and Fortran versions of ztrmm and compares the result internally and prints a success or fail message depending on whether the results compare equal.

    I see failures on
    Intel(R) Xeon(R) CPU E5530 @ 2.40GHz
    Intel(R) Xeon(R) CPU E5520 @ 2.27GHz

    but success on
    Intel(R) Xeon(R) CPU X5660 @ 2.80GHz
    Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz

  5. xianyi commented on Jun 7, 2011

    @xianyi
    Collaborator

    Hi krefson,

    Wang Qian fixed this bug on develop branch. Could you test it ?

    Thanks

    Xianyi

  6. krefson commented on Jun 7, 2011

    @krefson
    Author

    Yes, I can confirm the change fixes the problem, both in the testcase and our ab initio code.
    Thanks!

  7. added a commit that references this issue on Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions