ChakraImpl.cc Question

12 views
Skip to first unread message

Thomas Dyar

unread,
Oct 25, 2024, 4:31:15 PM10/25/24
to astrasi...@googlegroups.com
Hi there,

I'm trying to get Astra Analytical Model up and running on my Linux machine and I've run into a bit of an issue. When I try to compile the program, I'm getting errors in the ChakraImpl.cc file, more specifically in the calls to the front_end_sim_recv and front_end_sim_send functions. I see that the calls are only passing in 9 arguments but the function definitions in Sys.cc require 10 arguments. Based on the variable names, it looks like the function call is missing the recv_type argument. Do you all have a workaround for this issue? Any help would be much appreciated!

Thanks,
Bo Dyar

Man, Changhai

unread,
Oct 29, 2024, 6:24:16 PM10/29/24
to astrasi...@googlegroups.com

Hi,

 

FYI. If you face compilation error with collective API, please update to most recent commit on master branch. A recent PR solve this problem. For more detail please check threads below.

 

Have a good day.

 

Changhai

 

From: Thomas Dyar <tbd...@auburn.edu>
Sent: 2024
1029 16:13
To: Man, Changhai <cm...@gatech.edu>
Subject: Re: ChakraImpl.cc Question

 

Yes that was the issue, thank you for your help!

 

Thomas


From: Man, Changhai <cm...@gatech.edu>
Sent: Tuesday, October 29, 2024 11:21 AM
To: Thomas Dyar <tbd...@auburn.edu>
Cc: Yoo, Jinsun <jin...@gatech.edu>
Subject: [EXT] RE: ChakraImpl.cc Question

 

CAUTION: Email Originated Outside of Auburn.

Hi,

 

I think the missing file is at the submodule of extern/network_frontend/analytical.

 

Could you please double check if you update all the submodule? Also, please clean build artifacts by running ./build/astra_analytical/build.sh -l, then rebuild with ./build/astra_analytical/build.sh.

 

Have a good day!

 

Changhai

 

From: Thomas Dyar <tbd...@auburn.edu>
Sent: 2024
1029 12:16
To: Yoo, Jinsun <jin...@gatech.edu>; Man, Changhai <cm...@gatech.edu>
Subject: Re: ChakraImpl.cc Question

 

Some people who received this message don't often get email from tbd...@auburn.edu. Learn why this is important

Hi again,

 

Thank you for fixing that! I am receiving a new issue when trying to run the analytical model. It reads as follows:

 

"/home/tbd0025/astra-sim/astra-sim/network_frontend/analytical/include/common/CallbackTrackerEntry.hh:8:10: fatal error: astra-network-analytical/common/Event.hh: No such file or directory

    8 | #include <astra-network-analytical/common/Event.hh>"

 

The model is trying to reference a file Event.hh, which does not exist. Did this file get changed into one of the EventHandlers in the system directory? Do you have a workaround for this issue?

 

Thanks,

Thomas Dyar


From: Yoo, Jinsun <jin...@gatech.edu>
Sent: Friday, October 25, 2024 5:53 PM
To: Man, Changhai <cm...@gatech.edu>; Thomas Dyar <tbd...@auburn.edu>
Subject: [EXT] Re: ChakraImpl.cc Question

 

CAUTION: Email Originated Outside of Auburn.

Hi all, 

Yes, I think that fix will solve the problem for now. Thank you Changhai for looking into this! 

 

Best,

Jinsun

 

(As a side note, I should have a look at our regressino test to ensure that PRs are checked before merge once more when other PRs have been merged.)

 


From: Man, Changhai <cm...@gatech.edu>
Sent: Friday, October 25, 2024 3:28:20 PM
To: Thomas Dyar <tbd...@auburn.edu>; Yoo, Jinsun <jin...@gatech.edu>
Subject: RE: ChakraImpl.cc Question

 

Hi Thomas,

 

Thanks for your reaching out. I believe the problem you are facing is a side effect of PR183.

 

If I am understanding correctly, you might assign the missing recv_type=Sys::FrontEndSendRecvType::NATIVE, then it should resolve this problem.

 

How do you think @Yoo, Jinsun? If you think the same way, then I can push a PR to fix it.

 

Have a good day!

 

Changhai

 

From: astrasi...@googlegroups.com <astrasi...@googlegroups.com> On Behalf Of Thomas Dyar
Sent: 2024
1025 16:31
To: astrasi...@googlegroups.com
Subject: ChakraImpl.cc Question

 

你通常不会收到来自 tbd...@auburn.edu 的电子邮件。了解为什么这一点很重要

--
You received this message because you are subscribed to the Google Groups "ASTRA-sim Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrasim-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/astrasim-users/PH7PR19MB659062779F1D596B9B0A333ACA4F2%40PH7PR19MB6590.namprd19.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

Man, Changhai

unread,
Nov 6, 2024, 4:06:07 PM11/6/24
to Thomas Dyar, 'Beckmann, Brad' via ASTRA-sim Users

Hi,

 

Please go to the extern/graph_frontend/chakra, and run python/python3 -m pip install . to install chakra as a library.

 

Have a good day!

 

Changhai

 

From: Thomas Dyar <tbd...@auburn.edu>
Sent: 2024
116 15:12
To: Man, Changhai <cm...@gatech.edu>
Subject: Re: ChakraImpl.cc Question

 

Hi Changhai,

 

Thank you for your help with those modules. The simulator builds on my machine now.

 

However, now when I try to run the script to convert the workload input file to a chakra execution trace, I am getting an error saying there is no chakra module. I have everything cloned from the GitHub repo and I'm running the script as defined in the documentation (chakra.et_converter.et_converter) Do you have any idea why this might be happening? Sorry for coming to you with so many issues, but I really appreciate your help!

 

Best,

Thomas Dyar

Hi there,

--

Reply all
Reply to author
Forward
0 new messages