Coder Social home page Coder Social logo

aha's People

Contributors

alexcarsello avatar cdonovick avatar dependabot-preview[bot] avatar dependabot[bot] avatar hofstee avatar jack-melchert avatar jake-ke avatar jeffsetter avatar joyliu37 avatar kalhankoul96 avatar kongty avatar kuree avatar leonardt avatar mbstrange2 avatar pohantw avatar rdaly525 avatar rsetaluri avatar steveri avatar yuchen-mei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

aha's Issues

`garnet/tbg.py` does not seem to work with Verilator

It seems like it gets to the point where a testbench is compiled in Verilator and then begins running, but after a while the process running Verilator is taking up 0% CPU and seems like it hangs. Not sure if this is because a testbench failed to terminate or something else.

Your .dependabot/config.yml contained invalid details

Dependabot encountered the following error when parsing your .dependabot/config.yml:

The property '#/' contains additional properties ["automerged_updates"] outside of the schema when none are allowed

Please update the config file to conform with Dependabot's specification using our docs and online validator.

Merging `master` into other branches is hard

Whenever scripts and CI definitions update on master, the changes need to be propagated to the other branches for the Buildkite CI to work. Additionally, we usually want to have the branches running the most updated version of CI they can.

One way to fix this might be to create a scripts branch where updating the scripts is done and then merging that into both master and the other branches.

Error when trying to run pointwise

I've been trying to go through the basic flow in the readthedocs page just to get started. Everything works well until I run:

aha test apps/pointwise

At which point I get a long error printout from the simulator which ends with:

file: flop_unq1.sv
	module worklib.flop_unq1:sv
		errors: 0, warnings: 0
	Elaborating the design hierarchy:
		Caching library 'worklib' ....... Done
        .config_config_addr(config_config_addr),
                          |
ncelab: *E,CUVPOM (./Interconnect_tb.sv,88|26): Port name 'config_config_addr' is invalid or has multiple connections.
        .config_config_data(config_config_data),
                          |
ncelab: *E,CUVPOM (./Interconnect_tb.sv,89|26): Port name 'config_config_data' is invalid or has multiple connections.
        .config_read(config_read),
                   |
ncelab: *E,CUVPOM (./Interconnect_tb.sv,90|19): Port name 'config_read' is invalid or has multiple connections.
        .config_write(config_write),
                    |
ncelab: *E,CUVPOM (./Interconnect_tb.sv,91|20): Port name 'config_write' is invalid or has multiple connections.
        .stall(stall),
             |
ncelab: *E,CUVPOM (./Interconnect_tb.sv,94|13): Port name 'stall' is invalid or has multiple connections.
irun: *E,ELBERR: Error during elaboration (status 1), exiting.
</STDOUT>
Found 1 error(s):
1) Got return code 1.
Traceback (most recent call last):
  File "tbg.py", line 390, in <module>
    test.test()
  File "tbg.py", line 321, in test
    directory=tempdir)
  File "/aha/fault/fault/tester/staged_tester.py", line 276, in compile_and_run
    self._compile_and_run(target=target, **kwargs)
  File "/aha/fault/fault/tester/staged_tester.py", line 261, in _compile_and_run
    self.run(target)
  File "/aha/fault/fault/tester/staged_tester.py", line 251, in run
    target_obj.run(self.actions)
  File "/aha/fault/fault/system_verilog_target.py", line 715, in run
    err_str=sim_err_str, disp_type=self.disp_type)
  File "/aha/fault/fault/subprocess_run.py", line 163, in subprocess_run
    raise AssertionError
AssertionError
Traceback (most recent call last):
  File "/aha/bin/aha", line 11, in <module>
    load_entry_point('aha', 'console_scripts', 'aha')()
  File "/aha/aha/aha.py", line 51, in main
    args.dispatch(args, extra_args)
  File "/aha/aha/util/test.py", line 27, in dispatch
    cwd=args.aha_dir / "garnet",
  File "/usr/lib/python3.7/subprocess.py", line 363, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/aha/bin/python', 'tbg.py', 'garnet.v', 'garnet_stub.v', PosixPath('/aha/Halide-to-Hardware/apps/hardware_benchmarks/apps/pointwise/bin/pointwise.bs.json')]' returned non-zero exit status 1.

Am I doing something wrong here? Do either @hofstee or @Kuree have any idea what might be going wrong?

tbg.py Cannot identify the output pixel size

I was using garnet to test demosaic_complex app which have three output port(RGB) in parallel. It could not identify the pixel size from the gold.raw file. Keyi suggest we take the .pgm file from Halide and it have the pixel width information.

aha test Error

With the guidance of the website, I install the aha docker and run the "garnet", "halide", "map" successfully, but when I try to run "aha test apps/pointwise", it occurs some errors:

Running command: verilator -Wall -Wno-INCABSPATH -Wno-DECLFILENAME -Wno-fatal --cc Interconnect.v --exe Interconnect_driver.cpp --top-module Interconnect

%Warning-PINMISSING: Interconnect.v:2112: Cell has missing pin: ren_out
%Warning-PINMISSING: Use "/* verilator lint_off PINMISSING */" and lint_on around source to disable this message.
%Warning-PINMISSING: Interconnect.v:2112: Cell has missing pin: wen_out
%Warning-PINMISSING: Interconnect.v:10384: Cell has missing pin: parallel_out
%Error: Specified --top-module 'Interconnect' isn't at the top level, it's under another cell 'Garnet'
%Error: Exiting due to 1 error(s)
%Error: Command Failed /usr/bin/verilator_bin -Wall -Wno-INCABSPATH -Wno-DECLFILENAME -Wno-fatal --cc Interconnect.v --exe Interconnect_driver.cpp --top-module Interconnect

Found 1 error(s):

  1. Got return code 10. `

I don't have the Cadence Incisive, so I install the verilator.
All of the commands are:

aha garnet --width 16 --height 4 --verilog --interconnect-only --no-pd
aha halide apps/pointwise
aha map apps/pointwise --width 16 --height 4 --interconnect-only --no-pd
aha test apps/pointwise

Thanks a lot! Happy new year.

Running garnet->halide->map->test in Docker container

Previously, using the aha Docker image, on a generic linux server, with Verilator installed, I was able to run the garnet generation, halide compilation, map/pnr, and the test bench sequentially on a subset of the applications the Halide-to-Hardware repo.

The problem I now have is that in the last few months I think lot of the feature work related to clockwork has moved forward and I am no longer able to coax the commands (garnet->halide->map->test) into running in the docker container. I suspect that the accumulated changes have fully deprecated the ability to run anything outside of the specific dev env the team uses that includes xcelium and Cadence IP.

Here's a series of commands that used to run for harris/resnet_layer_gen/others, that no longer does:

# within aha docker container

apt update && apt install verilator

...

python garnet.py --width 32 --height 16 --verilog --interconnect-only --no-pd

aha halide apps/harris

aha map apps/harris --width 32 --height 16

aha test apps/harris

Previously I had applied single line edits in garnet.py and tbg.py inspired by

#1058
StanfordAHA/garnet#452

Those no longer seem to help make it past errors.

Is the glb/ global buffer related to/required for running these types of tests? #1277

Cannot run the quickstart on kiwi?

Hey @hofstee I'm trying to run the quick start described in the docs on kiwi, but I get the following error:

dhuff@kiwi:~/aha$ pip install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/dhuff/aha
ERROR: Package 'aha' requires a different Python: 3.6.9 not in '>=3.7'

Any idea what I'm doing wrong?

Your .dependabot/config.yml contained invalid details

Dependabot encountered the following error when parsing your .dependabot/config.yml:

Automerging is not enabled for this account. You can enable it from the [account settings](https://app.dependabot.com/accounts/hofstee/settings) screen in your Dependabot dashboard.

Please update the config file to conform with Dependabot's specification using our docs and online validator.

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.