Giter Site home page Giter Site logo

sim-se: gpu-tests are failing about gem5 HOT 7 CLOSED

ivanaamit avatar ivanaamit commented on June 12, 2024
sim-se: gpu-tests are failing

from gem5.

Comments (7)

ivanaamit avatar ivanaamit commented on June 12, 2024

@nmosier, could you please take a look at this issue? The commit that was merged yesterday is causing tests to fail. We tried to fix it but didn't find the appropriate solution. Thank you.

from gem5.

nmosier avatar nmosier commented on June 12, 2024

Oh no! I think the problem is because the statx struct is only defined on Linux hosts since v4.11. Are the GPU tests running on older Linux hosts (pre 4.11) or a different os (e.g., macOS)?

It could also be the members in struct statx has changed over time, and stx_mnt_id was added in a more recent version of the kernel than the one the GPU tests are running on.

from gem5.

nmosier avatar nmosier commented on June 12, 2024

I can submit a patch ASAP (by the end of today). I can reimplement statxFunc() to instead use a host system call to stat(2) instead of statx(2), so that it will work on both older Linux kernels and other OSes.

from gem5.

BobbyRBruce avatar BobbyRBruce commented on June 12, 2024

Oh no! I think the problem is because the statx struct is only defined on Linux hosts since v4.11. Are the GPU tests running on older Linux hosts (pre 4.11) or a different os (e.g., macOS)?

It could also be the members in struct statx has changed over time, and stx_mnt_id was added in a more recent version of the kernel than the one the GPU tests are running on.

I believe these tests are running on 5.14. They are running in the they are running on Ubuntu 20.04. According to this: https://ubuntu.com/about/release-cycle#ubuntu-kernel-release-cycle, should be running with Linux 5.14.

However, I think this solution/patch would be worth checking. We have a way to reproduce this error so should be able to quickly verify if this fix works.

from gem5.

nmosier avatar nmosier commented on June 12, 2024

I submitted a patch. Let me know if that fixes the issue!

from gem5.

BobbyRBruce avatar BobbyRBruce commented on June 12, 2024

I've verified that this patch appears to fix this issue. I use docker run -u ${UID}:${GID} -v $(pwd):/gem5 -w /gem5 -it --rm ghcr.io/gem5/gcn-gpu:latest scons build/VEGA_X86/gem5.opt -j8 : on the develop branch it fails with the error outlined, but completes fine with #989.

from gem5.

powerjg avatar powerjg commented on June 12, 2024

Thanks for the quick fix!!

from gem5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.