harvard-acc / ALADDIN

A pre-RTL, power-performance model for fixed-function accelerators
Other
167 stars 55 forks source link

Xyzsam/gem5-Aladdin missing build director #47

Closed peterhchen closed 2 years ago

peterhchen commented 2 years ago

The following site:

https://gitlab.engr.illinois.edu/ayooshb2/gem5-aladdin

has the “build” directory Xyzsam/gem5-aladdin image doesn’t contain the “build” directory. Your documents say

scons build/…

can not build. Very confusing

xyzsam commented 2 years ago

Scons will create the directory by itself if it's the first time gem5 is being built. See https://www.gem5.org/documentation/learning_gem5/part1/building/. Are you having some other specific issue?

Also, https://gitlab.engr.illinois.edu/ayooshb2/gem5-aladdin was forked from us 3 years ago, so it's very out of date at this point.

peterhchen commented 2 years ago

Need a user guide for simple hands on example

  1. docker run xyzsam/gem5-Aladdin

  2. cd /workspace/gem5-alluding/build/X86

  3. gem5.opt *.py

  4. How .PY call the .Cpp file
  5. A video online
  6. Currently, I watch grm5 video. Is this ver closed to grm5/Aladdin?
  7. Aladdin video only have slide concept introduction No hands on example.
  8. Make sure

    scons build… works. It cause error.

Peter H. Chen

On Fri, Oct 22, 2021 at 10:58 AM Sam Xi @.***> wrote:

Scons will create the directory by itself if it's the first time gem5 is being built. See https://www.gem5.org/documentation/learning_gem5/part1/building/. Are you having some other specific issue?

Also, https://gitlab.engr.illinois.edu/ayooshb2/gem5-aladdin was forked from us 3 years ago, so it's very out of date at this point.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/harvard-acc/ALADDIN/issues/47#issuecomment-949848950, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBSBD4IAN7YI77LROYK2ALUIGQ27ANCNFSM5GQR56EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Sincerely Yours, Peter H. Chen

peterhchen commented 2 years ago
  1. Provide a Script for gem5-Aladdin installation Or simple

    pip install gem5-Aladdin

  2. a simple example to run gem5-Aladdin

  3. Provide more scenarios code examples/configuration

On Fri, Oct 22, 2021 at 10:58 AM Sam Xi @.***> wrote:

Scons will create the directory by itself if it's the first time gem5 is being built. See https://www.gem5.org/documentation/learning_gem5/part1/building/. Are you having some other specific issue?

Also, https://gitlab.engr.illinois.edu/ayooshb2/gem5-aladdin was forked from us 3 years ago, so it's very out of date at this point.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/harvard-acc/ALADDIN/issues/47#issuecomment-949848950, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBSBD4IAN7YI77LROYK2ALUIGQ27ANCNFSM5GQR56EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Sincerely Yours, Peter H. Chen

peterhchen commented 2 years ago

Attached document is for Putty to common zone and docker run for gem5-aladdin. We have around 5-20 workers in our groups suffering how to use gem5-aladdin.

On Fri, Oct 22, 2021 at 10:58 AM Sam Xi @.***> wrote:

Scons will create the directory by itself if it's the first time gem5 is being built. See https://www.gem5.org/documentation/learning_gem5/part1/building/. Are you having some other specific issue?

Also, https://gitlab.engr.illinois.edu/ayooshb2/gem5-aladdin was forked from us 3 years ago, so it's very out of date at this point.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/harvard-acc/ALADDIN/issues/47#issuecomment-949848950, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBSBD4IAN7YI77LROYK2ALUIGQ27ANCNFSM5GQR56EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Sincerely Yours, Peter H. Chen

xyzsam commented 2 years ago

There's a lot of questions here, I'll try to answer them one at a time...

  1. Need user guide for simple example: please see https://github.com/harvard-acc/gem5-aladdin#running-gem5-aladdin
  2. How do the python scripts invoke the cpp code? This is fundamental to how gem5 works. Please read the gem5 documentation here to get started; they do a great job explaining how Python and C++ work together. As an example, you can read this to see how to build a new SimObject, which spans both C++ and Python. Respectfully, explaining this is not our job, it belongs to gem5.
  3. Videos? Sorry, no videos, and we have no plans to make any.
  4. scons build should work; if not, try "python2.7 which scons build/X86/gem5.opt", as suggested here.
  5. "We have around 5-20 workers in our groups suffering how to use gem5-aladdin": I'm thankful for your interest, and I'm happy to help with the learning curve, but you would need to include more information. Just saying "scons build produces errors" is not a useful bug report.
  6. "Provide more scenarios code examples/configuration": again, this is not useful. What scenarios are you interested in? We have a lot of demos in the integration tests and a sophisticated deep learning framework called SMAUG.
peterhchen commented 2 years ago

Make simple example just like attached in previous ppt. Every member in our group follow it snd can understand. Describe it snd capture the image what you did.

Your web site text descriptions causes lot of confusing. We follow them and not working. We all gave up.

On Fri, Oct 22, 2021 at 3:14 PM Sam Xi @.***> wrote:

There's a lot of questions here, I'll try to answer them one at a time...

  1. Need user guide for simple example: please see https://github.com/harvard-acc/gem5-aladdin#running-gem5-aladdin
  2. How do the python scripts invoke the cpp code? This is fundamental to how gem5 works. Please read the gem5 documentation here https://www.gem5.org/documentation/learning_gem5/introduction/ to get started; they do a great job explaining how Python and C++ work together. As an example, you can read this https://www.gem5.org/documentation/learning_gem5/part2/helloobject/ to see how to build a new SimObject, which spans both C++ and Python. Respectfully, explaining this is not our job, it belongs to gem5.
  3. Videos? Sorry, no videos, and we have no plans to make any.
  4. scons build should work; if not, try "python2.7 which scons build/X86/gem5.opt", as suggested here https://www.gem5.org/documentation/learning_gem5/part1/building.
  5. "We have around 5-20 workers in our groups suffering how to use gem5-aladdin": I'm thankful for your interest, and I'm happy to help with the learning curve, but you would need to include more information. Just saying "scons build produces errors" is not a useful bug report.
  6. "Provide more scenarios code examples/configuration": again, this is not useful. What scenarios are you interested in? We have a lot of demos in the integration tests and a sophisticated deep learning framework called SMAUG.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/harvard-acc/ALADDIN/issues/47#issuecomment-949988485, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBSBD4K6DCKXFTW55UOHITUIHO37ANCNFSM5GQR56EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Sincerely Yours, Peter H. Chen

peterhchen commented 2 years ago

Make 5-20 video series. At the introduction video. Introduce the folder structure. How you make. User will compare why we got the write message and you do not. That way, user can gain the confidence about how to use the tool.

Show the user case by case. What do you want to achieve in each case Just like gem5 does. I can follow gem5 video.

On Fri, Oct 22, 2021 at 3:14 PM Sam Xi @.***> wrote:

There's a lot of questions here, I'll try to answer them one at a time...

  1. Need user guide for simple example: please see https://github.com/harvard-acc/gem5-aladdin#running-gem5-aladdin
  2. How do the python scripts invoke the cpp code? This is fundamental to how gem5 works. Please read the gem5 documentation here https://www.gem5.org/documentation/learning_gem5/introduction/ to get started; they do a great job explaining how Python and C++ work together. As an example, you can read this https://www.gem5.org/documentation/learning_gem5/part2/helloobject/ to see how to build a new SimObject, which spans both C++ and Python. Respectfully, explaining this is not our job, it belongs to gem5.
  3. Videos? Sorry, no videos, and we have no plans to make any.
  4. scons build should work; if not, try "python2.7 which scons build/X86/gem5.opt", as suggested here https://www.gem5.org/documentation/learning_gem5/part1/building.
  5. "We have around 5-20 workers in our groups suffering how to use gem5-aladdin": I'm thankful for your interest, and I'm happy to help with the learning curve, but you would need to include more information. Just saying "scons build produces errors" is not a useful bug report.
  6. "Provide more scenarios code examples/configuration": again, this is not useful. What scenarios are you interested in? We have a lot of demos in the integration tests and a sophisticated deep learning framework called SMAUG.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/harvard-acc/ALADDIN/issues/47#issuecomment-949988485, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBSBD4K6DCKXFTW55UOHITUIHO37ANCNFSM5GQR56EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Sincerely Yours, Peter H. Chen

peterhchen commented 2 years ago

Simple installation example:

For docker image:

  1. docker pull grm5-Aladdin

  2. docker run -it gem5-Aladdin

  3. cd /workspace/Aladdin/src/…

  4. chmid 755 run.sh

  5. ./run.sh

  6. Ignore the cycle time 10 nsec and etc

Install gem5-Aladdin:

  1. pip install grm5-Aladdin

Or need compile (it is too complicated)

  1. Provide a script to Setup environment

    bash setup_env.sh (setup LD_LIBRARY_PATH…)

  2. cd ….

  3. make If error message, then search for post issues and discuss how to fix.

Make 10-20 video series on YouTube

  1. Introduction the Aladdin paper
  2. Introduce docker run
  3. Introduce folder structure …. Select 3-5 examples:
  4. Basic run example
  5. Advanced topics. ….

On Fri, Oct 22, 2021 at 3:14 PM Sam Xi @.***> wrote:

There's a lot of questions here, I'll try to answer them one at a time...

  1. Need user guide for simple example: please see https://github.com/harvard-acc/gem5-aladdin#running-gem5-aladdin
  2. How do the python scripts invoke the cpp code? This is fundamental to how gem5 works. Please read the gem5 documentation here https://www.gem5.org/documentation/learning_gem5/introduction/ to get started; they do a great job explaining how Python and C++ work together. As an example, you can read this https://www.gem5.org/documentation/learning_gem5/part2/helloobject/ to see how to build a new SimObject, which spans both C++ and Python. Respectfully, explaining this is not our job, it belongs to gem5.
  3. Videos? Sorry, no videos, and we have no plans to make any.
  4. scons build should work; if not, try "python2.7 which scons build/X86/gem5.opt", as suggested here https://www.gem5.org/documentation/learning_gem5/part1/building.
  5. "We have around 5-20 workers in our groups suffering how to use gem5-aladdin": I'm thankful for your interest, and I'm happy to help with the learning curve, but you would need to include more information. Just saying "scons build produces errors" is not a useful bug report.
  6. "Provide more scenarios code examples/configuration": again, this is not useful. What scenarios are you interested in? We have a lot of demos in the integration tests and a sophisticated deep learning framework called SMAUG.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/harvard-acc/ALADDIN/issues/47#issuecomment-949988485, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBSBD4K6DCKXFTW55UOHITUIHO37ANCNFSM5GQR56EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Sincerely Yours, Peter H. Chen

xyzsam commented 2 years ago

Again, many more questions and requests:

  1. A simple installation script: gem5-aladdin is not a tool to be installed. There is no complicated build or setup process. The docker image prepares all your dependencies and environment variables for you and all you need to do is to type scons build/X86/gem5.opt and wait.
  2. You want a run.sh: every single integration test has a run.sh for you to run. Example: src/aladdin/integration-test/with-cpu/test_load_store/run.sh. This has been made very clear in the not-so-long README, which I have linked above.
  3. You refer to attached ppts, but there are no attachments that I can see.
  4. Confusing website: what website are you referring to? gem5-aladdin does not have an official website. https://gitlab.engr.illinois.edu/ayooshb2/gem5-aladdin is not maintained by us; we hold no responsibility for any confusing or misleading statements they may or may not have posted.
  5. Videos: as I have said before, we have no plans to make any videos, end of story.

In summary, it appears that you are having some trouble getting started with the simulator, but after all this time, I have no idea what your problems are. You have attached no simulator logs, no command line input/output, no artifacts, and no instructions for reproducing any bug or issue you hare facing. This is not how you file a bug report. https://github.com/harvard-acc/smaug/issues/102 provides an excellent example of how bug reports should be filed: include all the steps and modifications you made to the code so I can reproduce it. In that case, I was able to reproduce the bug in less than 10 minutes, and I spent several days investigating that bug and resolving it.

Let me also reiterate that I investigate every single issue filed for gem5-aladdin, LLVM-Tracer, and SMAUG, despite the fact that I have long since graduated from my Ph.D., and maintaining this research infrastructure is something I do in my spare time because I am grateful that people are still interested and actively using this code. I am happy to fix bugs in the code; however, this issue has not indicated thus far any specific problems that I can take action on. All that you have asked for is a YouTube video series, and I have no plans to make any such videos.

If you have specific questions about anything, I am happy to answer them. But please do not ask for videos again, and please do not post bug reports like this; it is a waste of everyone's time.

peterhchen commented 2 years ago

Attached is the document I made for our group

On Sat, Oct 23, 2021 at 9:54 AM Sam Xi @.***> wrote:

Again, many more questions and requests:

  1. A simple installation script: gem5-aladdin is not a tool to be installed. There is no complicated build or setup process. The docker image prepares all your dependencies and environment variables for you and all you need to do is to type scons build/X86/gem5.opt and wait.
  2. You want a run.sh: every single integration test has a run.sh for you to run. Example: src/aladdin/integration-test/with-cpu/test_load_store/run.sh. This has been made very clear in the not-so-long README, which I have linked above.
  3. You refer to attached ppts, but there are no attachments that I can see.
  4. Confusing website: what website are you referring to? gem5-aladdin does not have an official website. https://gitlab.engr.illinois.edu/ayooshb2/gem5-aladdin is not maintained by us; we hold no responsibility for any confusing or misleading statements they may or may not have posted.
  5. Videos: as I have said before, we have no plans to make any videos, end of story.

In summary, it appears that you are having some trouble getting started with the simulator, but after all this time, I have no idea what your problems are. You have attached no simulator logs, no command line input/output, no artifacts, and no instructions for reproducing any bug or issue you hare facing. This is not how you file a bug report. harvard-acc/smaug#102 https://github.com/harvard-acc/smaug/issues/102 provides an excellent example of how bug reports should be filed: include all the steps and modifications you made to the code so I can reproduce it. In that case, I was able to reproduce the bug in less than 10 minutes, and I spent several days investigating that bug and resolving it.

Let me also reiterate that I investigate every single issue filed for gem5-aladdin, LLVM-Tracer, and SMAUG, despite the fact that I have long since graduated from my Ph.D., and maintaining this research infrastructure is something I do in my spare time because I am grateful that people are still interested and actively using this code. I am happy to fix bugs in the code; however, this issue has not indicated thus far any specific problems that I can take action on. All that you have asked for is a YouTube video series, and I have no plans to make any such videos.

If you have specific questions about anything, I am happy to answer them. But please do not ask for videos again, and please do not post bug reports like this; it is a waste of everyone's time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/harvard-acc/ALADDIN/issues/47#issuecomment-950180510, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBSBD2AZRJFUQVPWRWUZ43UILSDLANCNFSM5GQR56EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Sincerely Yours, Peter H. Chen

xyzsam commented 2 years ago

Attachments sent via an email response do not appear in Github issues. Please go to the Github issue page itself and attach them there.

peterhchen commented 2 years ago

I will cover the company IP address before I post on GitHub.

On Sat, Oct 23, 2021 at 10:30 AM Sam Xi @.***> wrote:

Attachments sent via an email response do not appear in Github issues. Please go to the Github issue page itself and attach them there.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/harvard-acc/ALADDIN/issues/47#issuecomment-950185705, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBSBD4QO5ZFCCXNCBYZJILUILWKFANCNFSM5GQR56EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Sincerely Yours, Peter H. Chen

peterhchen commented 2 years ago

I put the document in issues: run grm5-Aladdin On Sat, Oct 23, 2021 at 10:30 AM Sam Xi @.***> wrote:

Attachments sent via an email response do not appear in Github issues. Please go to the Github issue page itself and attach them there.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/harvard-acc/ALADDIN/issues/47#issuecomment-950185705, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBSBD4QO5ZFCCXNCBYZJILUILWKFANCNFSM5GQR56EA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Sincerely Yours, Peter H. Chen