Git Product home page Git Product logo

Comments (6)

fabianschuiki avatar fabianschuiki commented on July 29, 2024 2

This is indeed very strange. Especially the warning about tohost/fromhost should not be there. Looks like something in the compilation chain or the RISC-V frontend server is fishy. The test is supposed to terminate after around 1-5 minutes, depending on how fast your machine is. It should also print a runtime statistic of the matrix multiplication it executes, but that relies on the fesvr/tohost/fromhost, which won't be printed due to the warning above.

Also quite strange that you ran into the \r trouble even within the docker container. I'd expect this environment to be a pretty pristine Linux setup, and not be encumbered with Windows line endings.

@zarubaf Maybe a good check would be to add benchmark execution inside the docker container to CI; what do you think?

from snitch.

zarubaf avatar zarubaf commented on July 29, 2024

Awesome you gave it a try and sorry it didn’t work out. To me the line endings look fishy. Is it possible that your native system is Windows?

We might need to change how the files are checked out for such a system.

from snitch.

davemap avatar davemap commented on July 29, 2024

Thank you. Yeah, I am running the docker container in Windows, I attempted to use the docker container I'm a WSL2 centos7 distro but it wouldn't let me start docker. I might try and set up a dual boot later today with Ubuntu, though I'd there's something simple I can do to get it running on windows the would be amazing.

from snitch.

zarubaf avatar zarubaf commented on July 29, 2024

Unfortunately, I don't have a Windows machine at hand right now. Looking at the GitHub Help it seems you could:

  1. Add a .gitattributes file containing:
    * text eol=lf
    
  2. Delete all files except .git directory (commit changes before doing that so that if you have some locally so that you do not lose your work).
    $ git restore .
    
  3. That should give you a new checkout with Linux file endings (and enable the Python script to work).

If that helps we could think about adding the .gitattributes file to the repository. I am not sure how editing such files natively on Windows works though, I think some editors are more clever than others (VS Code vs. Notepad for example).

I thought that Docker has an experimental WSL2 backend. That is probably the easiest route to go down (for long-term development sanity). Let me know if that helps, or if you have any follow-up questions :-)

from snitch.

davemap avatar davemap commented on July 29, 2024

I got the make file to work on an Ubuntu WSL2 which I then opened the docker in so I'm making progress :-) I've now got the stage where we run the benchmark on the Verilator model. It then seems to hang here:
image
Is it supposed to do something or does this run indefinitely? I used Ctrl+Z to stop the process and try to use the make traces command but it gives me errors about trace_hart_00000000.txt.
Sorry, I am very new to all of the RISC-V stuff, so thank you very much for all your help :)

from snitch.

zarubaf avatar zarubaf commented on July 29, 2024

@davemap That was indeed a small issue in our build system. @fabianschuiki has just fixed this #49. Maybe you want to give it a try again?

Closing this issue for now, but feel free to re-open it in case it persists.

from snitch.

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.